Fix code paths that still conflated null characters with EOF
This commit is contained in:
parent
47a926067d
commit
0cb2ef1082
4 changed files with 15 additions and 4 deletions
|
|
@ -439,7 +439,7 @@ static Subtree ts_parser__lex(
|
|||
}
|
||||
|
||||
if (self->lexer.current_position.bytes == error_end_position.bytes) {
|
||||
if (self->lexer.data.lookahead == 0) {
|
||||
if (self->lexer.data.eof(&self->lexer.data)) {
|
||||
self->lexer.data.result_symbol = ts_builtin_sym_error;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue