-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Luau file type support #33767
Comments
|
Is syntax the same as lua? If yes, just PR the file extension into chroma and it will automatically work in gitea: Edit: According to this Linguist treats it as an alias to lua, so above is a good start: |
It's not the same syntax as Lua. It's backwards compatible but there are substantial additions in syntax. See here: https://luau.org/ |
For "highlighting", the syntax is more than 90% the same I guess, so I think at the moment it should be good enough to use "lua" syntax to highlight "luau" files. |
Right, but highlighting as lua is better than no highlighting imho. Also GitHub seems to highlight it as lua, at least in their CodeMirror, not sure about Prettylights but likely the same. Also, monaco-editor does not support lual, and I can't even find an issue on https://github.com/microsoft/monaco-editor about it. |
Feature Description
Github supports Luau. github-linguist/linguist#6000
Screenshots
No response
The text was updated successfully, but these errors were encountered: