From 2e824e89c13ea720308517b6f8f49cdd6613ae91 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 8 Aug 2023 14:57:06 +0200 Subject: build(deps): bump tree-sitter to HEAD - 0a1c4d846 (#24607) adapt to breaking change in `ts_query_cursor_set_max_start_depth` https://github.com/tree-sitter/tree-sitter/pull/2278 --- src/nvim/lua/treesitter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/lua') diff --git a/src/nvim/lua/treesitter.c b/src/nvim/lua/treesitter.c index a9e7838980..66a75f8d40 100644 --- a/src/nvim/lua/treesitter.c +++ b/src/nvim/lua/treesitter.c @@ -1441,7 +1441,7 @@ static int node_rawquery(lua_State *L) #ifdef NVIM_TS_HAS_SET_MAX_START_DEPTH // reset the start depth - ts_query_cursor_set_max_start_depth(cursor, 0); + ts_query_cursor_set_max_start_depth(cursor, UINT32_MAX); #endif ts_query_cursor_set_match_limit(cursor, 256); ts_query_cursor_exec(cursor, query, node); -- cgit