Fix incorrect node reuse for edits right at EOF
This commit is contained in:
parent
392e8ea749
commit
10ab7032a6
3 changed files with 43 additions and 5 deletions
|
|
@ -416,7 +416,7 @@ static Subtree ts_parser__lex(TSParser *self, StackVersion version, TSStateId pa
|
|||
last_byte_scanned = self->lexer.current_position.bytes;
|
||||
}
|
||||
|
||||
if (self->lexer.data.lookahead != 0) last_byte_scanned++;
|
||||
last_byte_scanned++;
|
||||
|
||||
Subtree result;
|
||||
if (skipped_error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue