src/nvim/lua/treesitter.c
/// init the tslua library
///
/// all global state is stored in the regirstry of the lua_State
init the tslua library
all global state is stored in the regirstry of the lua_State
init the tslua library all global state is stored in the regirstry of the lua_State
void tslua_init(lua_State *L)
{
  langs = pmap_new(cstr_t)();
  build_meta(L, "treesitter_parser", parser_meta);
  build_meta(L, "treesitter_tree", tree_meta);
  build_meta(L, "treesitter_node", node_meta);
  build_meta(L, "treesitter_query", query_meta);
  build_meta(L, "treesitter_querycursor", querycursor_meta);
}
void tslua_init ( lua_State * L ) { langs = pmap_new ( cstr_t ) ( ) ; build_meta ( L , " " , parser_meta ) ; build_meta ( L , " " , tree_meta ) ; build_meta ( L , " " , node_meta ) ; build_meta ( L , " " , query_meta ) ; build_meta ( L , " " , querycursor_meta ) ; }
init the tslua library
all global state is stored in the regirstry of the lua_State
init the tslua library all global state is stored in the regirstry of the lua_State
// type metatables