neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 7369f80b190ff0cb40406a61bbd4f0183abecabd
parent ef5c5dc99b486b53b35a2a46e28c2739c187ae4e
Author: Riley Bruins <ribru17@hotmail.com>
Date:   Sun, 11 May 2025 10:52:14 -0700

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.

Diffstat:
Msrc/nvim/lua/treesitter.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/nvim/lua/treesitter.c b/src/nvim/lua/treesitter.c @@ -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;