xo-reader: fix reader/tokenizer interaction around eol
Now that tokenizer defers consume span until arriving at eol
This commit is contained in:
parent
1a3d86b800
commit
a3a98eb9da
2 changed files with 13 additions and 8 deletions
|
|
@ -96,7 +96,7 @@ main()
|
|||
welcome(cerr);
|
||||
|
||||
while (replxx_getline(interactive, parser_stack_size, rx, input_str)) {
|
||||
input = span_type::from_string(input_str);
|
||||
input = span_type::from_string(input_str);
|
||||
|
||||
while (!input.empty()) {
|
||||
auto [expr, consumed, psz, error] = rdr.read_expr(input, eof);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue