Lua grammar for tree-sitter, providing incremental parsing and syntax tree queries for Lua code. Current version 0.5.0 (2025), supports Python >=3.10. Regenerated with tree-sitter 0.26.6. Release cadence is irregular, roughly semiannual.
pip install tree-sitter-luaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a Lua string and prints the S-expression of the syntax tree.
Upgrade tree-sitter: pip install --upgrade tree-sitter
Use `from tree_sitter_lua import language_lua`
Run `pip install tree-sitter` before using tree-sitter-lua.