aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/treesitter.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-03-03 14:53:37 +0100
committerGitHub <noreply@github.com>2023-03-03 14:53:37 +0100
commit506ffde1a7dd819f2a917907b024f42d32e3ad49 (patch)
tree1a7710fe4e6c27b63737ccb28f8ebc64704100d6 /src/nvim/lua/treesitter.c
parent98e051783c26239a47c5cd643e9aea7146b097bd (diff)
parent2cffd048334912f72e0f55b2a02bd1fd9107613a (diff)
downloadrneovim-506ffde1a7dd819f2a917907b024f42d32e3ad49.tar.gz
rneovim-506ffde1a7dd819f2a917907b024f42d32e3ad49.tar.bz2
rneovim-506ffde1a7dd819f2a917907b024f42d32e3ad49.zip
Merge pull request #22442 from bfredl/quickmake
refactor(build): spring cleaning of compile time checks
Diffstat (limited to 'src/nvim/lua/treesitter.c')
-rw-r--r--src/nvim/lua/treesitter.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nvim/lua/treesitter.c b/src/nvim/lua/treesitter.c
index d72e7a1825..2db12b8ded 100644
--- a/src/nvim/lua/treesitter.c
+++ b/src/nvim/lua/treesitter.c
@@ -152,9 +152,7 @@ void tslua_init(lua_State *L)
build_meta(L, TS_META_QUERYCURSOR, querycursor_meta);
build_meta(L, TS_META_TREECURSOR, treecursor_meta);
-#ifdef NVIM_TS_HAS_SET_ALLOCATOR
ts_set_allocator(xmalloc, xcalloc, xrealloc, xfree);
-#endif
}
int tslua_has_language(lua_State *L)
@@ -1321,11 +1319,7 @@ static int node_rawquery(lua_State *L)
} else {
cursor = ts_query_cursor_new();
}
- // TODO(clason): API introduced after tree-sitter release 0.19.5
- // remove guard when minimum ts version is bumped to 0.19.6+
-#ifdef NVIM_TS_HAS_SET_MATCH_LIMIT
ts_query_cursor_set_match_limit(cursor, 64);
-#endif
ts_query_cursor_exec(cursor, query, node);
bool captures = lua_toboolean(L, 3);