Merge pull request #14200 from teto/treesitter-checkhealth

feat: treesitter checkhealth
This commit is contained in:
Marco Hinz
2021-04-07 16:40:56 +02:00
committed by GitHub
5 changed files with 48 additions and 1 deletions

View File

@@ -230,6 +230,11 @@ int tslua_inspect_lang(lua_State *L)
}
lua_setfield(L, -2, "fields"); // [retval]
uint32_t lang_version = ts_language_version(lang);
lua_pushinteger(L, lang_version); // [retval, version]
lua_setfield(L, -2, "_abi_version");
return 1;
}