Remove untested, unused error handling for reduce_extra action
This commit is contained in:
parent
37d5db6fee
commit
b71d0f7f9d
1 changed files with 1 additions and 5 deletions
|
|
@ -245,12 +245,8 @@ const TSTree *ts_parser_parse(TSParser *parser, TSInput input,
|
|||
break;
|
||||
|
||||
case TSParseActionTypeReduceExtra:
|
||||
if (!reduce_extra(parser, action.data.symbol)) {
|
||||
DEBUG_PARSE("ERROR");
|
||||
if (!handle_error(parser))
|
||||
return get_root(parser);
|
||||
}
|
||||
DEBUG_PARSE("REDUCE EXTRA");
|
||||
reduce_extra(parser, action.data.symbol);
|
||||
break;
|
||||
|
||||
case TSParseActionTypeAccept:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue