Fix assignment of parser split condition
This commit is contained in:
parent
df09f37a6c
commit
76c6e47d49
1 changed files with 2 additions and 2 deletions
|
|
@ -1122,10 +1122,10 @@ TSTree *ts_parser_parse(TSParser *self, TSInput input, TSTree *old_tree) {
|
|||
|
||||
ts_tree_release(lookahead);
|
||||
|
||||
if (version > 1)
|
||||
self->is_split = true;
|
||||
if (version == 0)
|
||||
break;
|
||||
else
|
||||
self->is_split = (version > 1);
|
||||
}
|
||||
|
||||
LOG("done");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue