3 stable releases

1.2.0 Dec 22, 2024
1.1.0 Jan 24, 2024
1.0.0 Jun 21, 2023

#51 in #luau

Download history 150/week @ 2026-03-21 789/week @ 2026-03-28 826/week @ 2026-04-04 757/week @ 2026-04-11 691/week @ 2026-04-18 362/week @ 2026-04-25 115/week @ 2026-05-02

1,999 downloads per month
Used in 5 crates (3 directly)

MIT license

695KB
27K SLoC

C 27K SLoC Scheme 330 SLoC // 0.1% comments Rust 30 SLoC

This crate provides Luau language support for the tree-sitter parsing library.

Typically, you will use the [LANGUAGE][] constant to add this language to a tree-sitter Parser, and then use the parser to parse some code:

let code = r#"
"#;
let mut parser = tree_sitter::Parser::new();
let language = tree_sitter_luau::LANGUAGE;
parser
    .set_language(&language.into())
    .expect("Error loading Luau parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

tree-sitter-luau

Build Status Discord

Luau grammar for tree-sitter.

Adapted from the syntax spec

Dependencies

~250KB