code-review-graph icon indicating copy to clipboard operation
code-review-graph copied to clipboard

Luau Support

Open riptscripts opened this issue 7 months ago • 3 comments

Can we get Luau support pleaseeeee (would be peak for roblox dev)

riptscripts avatar Apr 08 '26 16:04 riptscripts

Thanks for the request! Luau is similar to Lua but has type annotations and other differences. We'd need to check if there's a stable tree-sitter-luau grammar available. If you know of one, please share! Adding this to the feature backlog.

tirth8205 avatar Apr 08 '26 19:04 tirth8205

Yessir, v1.2.0 https://github.com/tree-sitter-grammars/tree-sitter-luau

riptscripts avatar Apr 08 '26 20:04 riptscripts

Luau (Roblox's typed Lua dialect) is not currently supported. Lua is supported (.lua files map to lua language). Luau uses .luau extension and is a superset of Lua.

tree-sitter-luau grammar exists but may not be in tree-sitter-language-pack yet. If the grammar is available, adding Luau support would involve adding .luau to the extension map, and Luau's syntax is close enough to Lua that the existing Lua node type definitions may work with minor additions.

This is a valid feature request.

tirth8205 avatar Apr 11 '26 08:04 tirth8205