Skip to content
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

Support a real Luau lexer #1062

Open
1 task done
CompeyDev opened this issue Mar 17, 2025 · 0 comments
Open
1 task done

Support a real Luau lexer #1062

CompeyDev opened this issue Mar 17, 2025 · 0 comments
Labels
help wanted lexer missing Missing a lexer, please contribute

Comments

@CompeyDev
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What is the missing lexer?

Currently, there is no Luau lexer, and Luau files are simply aliased to the Lua lexer as per #1056. The correct implementation would be to have a real Luau lexer for the Luau language, which has significantly diverged from Lua.

Such an alias tends to often misbehave for syntax highlighting due to how similar tokens can have entirely different meanings in contexts -- and has been evident in the past when users used to use .gitattributes overrides to alias Luau to Lua before official support was landed in GitHub's Linguist library.

Links to existing syntax definitions

There is a community maintained repository containing Textmate language files, which the Linguist library also uses: JohnnyMorganz/Luau.tmLanguage.

@CompeyDev CompeyDev added help wanted lexer missing Missing a lexer, please contribute labels Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted lexer missing Missing a lexer, please contribute
Projects
None yet
Development

No branches or pull requests

1 participant