From 76c6e47d49fe89a58b24cb045c2e878394533def Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 23 Jun 2016 13:41:38 -0700 Subject: [PATCH] Fix assignment of parser split condition --- src/runtime/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/parser.c b/src/runtime/parser.c index 149a5d07..88e5664f 100644 --- a/src/runtime/parser.c +++ b/src/runtime/parser.c @@ -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");