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:
Max Brunsfeld 2014-09-01 21:32:29 -07:00
parent 5cd07648fd
commit e941f8c175
5 changed files with 21 additions and 25 deletions

View file

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