Skip to content

Add Lua syntax highlighting support#800

Open
OMouta wants to merge 1 commit intomicrosoft:mainfrom
OMouta:main
Open

Add Lua syntax highlighting support#800
OMouta wants to merge 1 commit intomicrosoft:mainfrom
OMouta:main

Conversation

@OMouta
Copy link
Copy Markdown
Contributor

@OMouta OMouta commented Apr 15, 2026

This adds LSH syntax highlighting support for Lua, with *.luau files routed through the same definition for now.

It also adds basic Luau coverage by recognizing common Luau-specific keywords in the shared definition and by routing Markdown fenced luau blocks through the same highlighter.

It also updates Markdown fenced code block routing so that:

  • lua uses Lua highlighting
  • luau uses Lua highlighting

Notes

For Luau, the current approach is intentionally lightweight rather than a dedicated full Luau definition: *.luau files and fenced luau blocks currently reuse the Lua highlighter, while still covering some common Luau-specific syntax.

If you would prefer this to be discussed as a feature request first, I am happy to open an issue and rework the PR accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant