Skip to content

fix: highlight parameters after inline shape default values#220

Merged
mszabo-wikia merged 1 commit intomasterfrom
fix-inline-shape-param-highlight
Mar 31, 2026
Merged

fix: highlight parameters after inline shape default values#220
mszabo-wikia merged 1 commit intomasterfrom
fix-inline-shape-param-highlight

Conversation

@mszabo-wikia
Copy link
Copy Markdown
Contributor

The default value end pattern (?=,|\)) matched the ) inside expressions like shape(), prematurely closing the parameter scope and breaking highlighting for all subsequent parameters. Add a nested parentheses-matching pattern so balanced parens in default value expressions are consumed correctly.

Fixes #124.

Before

Screenshot 2026-03-31 at 23 15 55

After

Screenshot 2026-03-31 at 23 16 05

The default value end pattern `(?=,|\))` matched the `)` inside
expressions like `shape()`, prematurely closing the parameter scope
and breaking highlighting for all subsequent parameters. Add a nested
parentheses-matching pattern so balanced parens in default value
expressions are consumed correctly.

Fixes #124.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@mszabo-wikia mszabo-wikia merged commit fa4ef0f into master Mar 31, 2026
5 checks passed
@mszabo-wikia mszabo-wikia deleted the fix-inline-shape-param-highlight branch March 31, 2026 23:03
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.

Syntax not highlighting correctly with shape as parameter

2 participants