aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/treesitter.c
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-08-08 14:57:06 +0200
committerGitHub <noreply@github.com>2023-08-08 14:57:06 +0200
commit2e824e89c13ea720308517b6f8f49cdd6613ae91 (patch)
treea1ee45ca5a67a99f76bbbbbaa811fb6eaf0986e5 /src/nvim/lua/treesitter.c
parent37c58226a8fd02afe9836f2fe43b31570fc50bb9 (diff)
downloadrneovim-2e824e89c13ea720308517b6f8f49cdd6613ae91.tar.gz
rneovim-2e824e89c13ea720308517b6f8f49cdd6613ae91.tar.bz2
rneovim-2e824e89c13ea720308517b6f8f49cdd6613ae91.zip
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
Diffstat (limited to 'src/nvim/lua/treesitter.c')
-rw-r--r--src/nvim/lua/treesitter.c2
1 files changed, 1 insertions, 1 deletions
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);