mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
feat(treesitter): set allocator when possible
Adds a new cmake check to keep this backwards compatible with the different versions of tree-sitter.
This commit is contained in:
@@ -129,6 +129,10 @@ void tslua_init(lua_State *L)
|
||||
build_meta(L, TS_META_QUERY, query_meta);
|
||||
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)
|
||||
|
Reference in New Issue
Block a user