Only use first parse stack path during error recovery
This commit is contained in:
parent
46e99d3e42
commit
0824d3e1f3
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ static bool ts_parser__handle_error(TSParser *self, int head) {
|
|||
*/
|
||||
int i = -1;
|
||||
for (StackEntry *entry = entry_before_error; true;
|
||||
entry = ts_stack_entry_next(entry, head), i++) {
|
||||
entry = ts_stack_entry_next(entry, 0), i++) {
|
||||
TSStateId stack_state = entry ? entry->state : 0;
|
||||
TSParseAction action_on_error = ts_language__last_action(
|
||||
self->language, stack_state, ts_builtin_sym_error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue