Fix inc parsing when appending to end of a token

This commit is contained in:
Max Brunsfeld 2014-09-03 07:09:15 -07:00
parent 77529ace3d
commit ad52bdc448
4 changed files with 41 additions and 26 deletions

View file

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