test(treesitter): make internal lang test pending when necessary

This commit is contained in:
Thomas Vigouroux
2022-08-24 16:22:50 +02:00
parent b1eaa2b9a3
commit 26ebf67c39
4 changed files with 20 additions and 2 deletions

View File

@@ -1662,6 +1662,9 @@ static void nlua_add_treesitter(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
lua_pushcfunction(lstate, tslua_has_language);
lua_setfield(lstate, -2, "_ts_has_language");
lua_pushcfunction(lstate, tslua_remove_lang);
lua_setfield(lstate, -2, "_ts_remove_language");
lua_pushcfunction(lstate, tslua_inspect_lang);
lua_setfield(lstate, -2, "_ts_inspect_language");