For example, I write a SQL CLI and meet the input SELECT 1; SELECT.
I'd like to treat this line a valid one, but only handle SELECT 1; part, leave the second SELECT part of the next input.
I can identify the tokens and rebuild the remaining part, but it seems rustyline will consume per line, and I don't find a way to consume part of a line.
For example, I write a SQL CLI and meet the input
SELECT 1; SELECT
.I'd like to treat this line a valid one, but only handle
SELECT 1;
part, leave the secondSELECT
part of the next input.I can identify the tokens and rebuild the remaining part, but it seems rustyline will consume per line, and I don't find a way to consume part of a line.