Handle extra tokens properly during error recovery
This commit is contained in:
parent
773e50f26b
commit
45f7cee0c8
3 changed files with 15 additions and 3 deletions
|
|
@ -175,6 +175,9 @@ enum {
|
|||
.type = TSParseActionTypeRecover, .data = {.to_state = to_state_value } \
|
||||
}
|
||||
|
||||
#define RECOVER_EXTRA() \
|
||||
{ .type = TSParseActionTypeShift, .extra = true, }
|
||||
|
||||
#define SHIFT_EXTRA() \
|
||||
{ \
|
||||
{ .type = TSParseActionTypeShift, .extra = true } \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue