xo-reader: fix reader/tokenizer interaction around eol

Now that tokenizer defers consume span until arriving at eol
This commit is contained in:
Roland Conybeare 2025-11-23 00:11:30 -05:00
commit a3a98eb9da
2 changed files with 13 additions and 8 deletions

View file

@ -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);