#tree-sitter #luau #parser #incremental

tree-sitter-luau-fork

luau grammar for the tree-sitter parsing library (fork from tree-sitter-grammars/tree-sitter-luau-fork)

4 releases

0.1.3 Jul 28, 2024
0.1.2 Jul 28, 2024
0.1.1 Jul 28, 2024
0.1.0 Jul 28, 2024

#221 in Text editors

Download history 109/week @ 2024-07-23 105/week @ 2024-07-30 59/week @ 2024-08-06 27/week @ 2024-08-13 46/week @ 2024-08-20 118/week @ 2024-08-27 17/week @ 2024-09-03 32/week @ 2024-09-10 55/week @ 2024-09-17 64/week @ 2024-09-24 57/week @ 2024-10-01 9/week @ 2024-10-08 45/week @ 2024-10-15 13/week @ 2024-10-22 6/week @ 2024-10-29 4/week @ 2024-11-05

72 downloads per month
Used in md-tui

MIT license

695KB
27K SLoC

C 26K SLoC Scheme 330 SLoC // 0.1% comments JavaScript 291 SLoC // 0.1% comments Rust 37 SLoC // 0.3% comments

tree-sitter-luau-fork

Build Status

Luau grammar for tree-sitter.

Adapted from the syntax spec

Fork from tree-sitter-luau


lib.rs:

This crate provides luau 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_luau::language()).expect("Error loading luau grammar");
let tree = parser.parse(code, None).unwrap();

Dependencies

~2.9–4MB
~79K SLoC