Fix inc parsing when appending to end of a token
This commit is contained in:
parent
77529ace3d
commit
ad52bdc448
4 changed files with 41 additions and 26 deletions
|
|
@ -32,7 +32,7 @@ static size_t breakdown_stack(TSParser *parser, TSInputEdit *edit) {
|
|||
position = ts_stack_right_position(stack);
|
||||
size_t child_count;
|
||||
TSTree **children = ts_tree_children(node, &child_count);
|
||||
if (position <= edit->position && !children)
|
||||
if (position < edit->position && !children)
|
||||
break;
|
||||
|
||||
stack->size--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue