Skip to content

Add syntax highlighting support for the const keyword - #23

Merged
JohnnyMorganz merged 3 commits into
mainfrom
claude/luau-const-syntax-highlighting-3rBcX
Mar 25, 2026
Merged

Add syntax highlighting support for the const keyword#23
JohnnyMorganz merged 3 commits into
mainfrom
claude/luau-const-syntax-highlighting-3rBcX

Conversation

@JohnnyMorganz

@JohnnyMorganz JohnnyMorganz commented Mar 25, 2026

Copy link
Copy Markdown
Owner

Treats const similarly to local: storage.modifier.local.luau scope for
the keyword, const function declarations, const variable declarations
with type annotations, and fallback keyword matching.

Adds const-declaration.luau test case with accepted baseline.

claude added 3 commits March 25, 2026 11:34
Treats const similarly to local: storage.modifier.local.luau scope for
the keyword, const function declarations, const variable declarations
with type annotations, and fallback keyword matching.

Adds const-declaration.luau test case with accepted baseline.

https://claude.ai/code/session_01H8xMTHps6kMbx212FYQtNX
TypeScript incremental build info files are build artifacts and
should not be tracked.

https://claude.ai/code/session_01H8xMTHps6kMbx212FYQtNX
Differentiates const from local so themes can style them independently.
Also fixes function-definition regex to keep whitespace inside each
alternative, preventing the space before `function` from being
incorrectly included in the meta.function.luau scope.

https://claude.ai/code/session_01H8xMTHps6kMbx212FYQtNX
@JohnnyMorganz
JohnnyMorganz merged commit 16adf16 into main Mar 25, 2026
2 checks passed
@JohnnyMorganz
JohnnyMorganz deleted the claude/luau-const-syntax-highlighting-3rBcX branch March 25, 2026 20:04
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.

2 participants