#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

#182 in Text editors

Download history 2/week @ 2024-11-13 8/week @ 2024-11-20 10/week @ 2024-11-27 12/week @ 2024-12-04 18/week @ 2024-12-11 13/week @ 2024-12-18 11/week @ 2024-12-25 7/week @ 2025-01-08 27/week @ 2025-01-22 4/week @ 2025-01-29 15/week @ 2025-02-05 26/week @ 2025-02-12 137/week @ 2025-02-26

179 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.8–4.5MB
~83K SLoC