Fix error in document editing
When breaking down the stack in parser.c, the previous code would not account for ubiquitous tokens. This was a problem for a long time, but wasn't noticed until ubiquitous tokens started being used to represent separator characters
This commit is contained in:
parent
5cd07648fd
commit
e941f8c175
5 changed files with 21 additions and 25 deletions
|
|
@ -29,7 +29,7 @@ TSTree **ts_stack_pop_extras(TSStack *, size_t *);
|
|||
|
||||
#define TS_STACK_FROM_TOP(stack, entry, index) \
|
||||
size_t index = stack.size - 1; \
|
||||
(void)index; \
|
||||
(void) index; \
|
||||
for (TSStackEntry *entry = stack.entries + stack.size - 1; \
|
||||
entry >= stack.entries; entry-- && index--)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue