#tree-sitter #luau #incremental-parser

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

#56 in #luau

Download history 82/week @ 2025-10-22 22/week @ 2025-10-29 20/week @ 2025-11-05 23/week @ 2025-11-12 34/week @ 2025-11-19 55/week @ 2025-11-26 39/week @ 2025-12-03 16/week @ 2025-12-17 7/week @ 2025-12-24 11/week @ 2025-12-31 65/week @ 2026-01-07 48/week @ 2026-01-14 26/week @ 2026-01-21 32/week @ 2026-01-28 110/week @ 2026-02-04

244 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

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();

tree-sitter-luau-fork

Build Status

Luau grammar for tree-sitter.

Adapted from the syntax spec

Fork from tree-sitter-luau

Dependencies

~2.7–4MB
~78K SLoC