diff --git a/src/runtime/parser.c b/src/runtime/parser.c index 8855ae0c..cc7c0c42 100644 --- a/src/runtime/parser.c +++ b/src/runtime/parser.c @@ -1,4 +1,3 @@ -#include #include #include #include "tree_sitter/runtime.h" @@ -311,7 +310,6 @@ static TSTree *ts_parser__finish(TSParser *parser) { TSTree **trees = pop_result.trees; size_t extra_count = pop_result.tree_count - 1; TSTree *root = trees[extra_count]; - assert(root->child_count > 0); ts_tree_prepend_children(root, extra_count, trees); ts_parse_stack_push(parser->stack, 0, 0, root);