13 releases
0.0.14 | Oct 31, 2022 |
---|---|
0.0.13 | Sep 15, 2022 |
0.0.12 | Jul 16, 2022 |
0.0.10 | Apr 8, 2022 |
0.0.2 | Aug 9, 2021 |
#53 in Text editors
336 downloads per month
Used in ast-grep-language
320KB
12K
SLoC
tree-sitter-lua
Lua grammar for tree-sitter.
References
Acknowledgement
The external scanner was based on these repositories:
License
Licensed under the MIT License. Check the LICENSE file for details.
lib.rs
:
This crate provides lua language support for the tree-sitter parsing library.
Typically, you will use the language function to add this language to a tree-sitter Parser, and then use the parser to parse some code:
let code = "";
let mut parser = tree_sitter::Parser::new();
parser.set_language(tree_sitter_lua::language()).expect("Error loading lua grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~1.3–1.9MB
~51K SLoC