refactor(treesitter): remove empty parse callback

Now that we have bumped to tree-sitter 0.25.4, we no longer need to do
this since upstream does it for us when calling the regular parse
method.
This commit is contained in:
Riley Bruins
2025-05-11 10:52:14 -07:00
committed by Christian Clason
parent ef5c5dc99b
commit 7369f80b19

View File

@ -545,8 +545,7 @@ static int parser_parse(lua_State *L)
.progress_callback = on_parser_progress };
new_tree = ts_parser_parse_with_options(p, old_tree, input, parse_options);
} else {
// Tree-sitter retains parse options after use, so we must explicitly reset them here.
new_tree = ts_parser_parse_with_options(p, old_tree, input, (TSParseOptions) { 0 });
new_tree = ts_parser_parse(p, old_tree, input);
}
break;