Skip to content

fix: highlight upcast as a keyword in grammar#228

Merged
mszabo-wikia merged 1 commit intomasterfrom
fix-upcast-syntax-highlight
Apr 9, 2026
Merged

fix: highlight upcast as a keyword in grammar#228
mszabo-wikia merged 1 commit intomasterfrom
fix-upcast-syntax-highlight

Conversation

@mszabo-wikia
Copy link
Copy Markdown
Contributor

Add upcast to the as|is keyword patterns so it is tokenized as keyword.operator.type.php instead of constant.other.php.

Testing

Used Monokai for the screenshot since the contrast is more visible here:
Screenshot 2026-04-09 at 23 31 50

Add `upcast` to the `as|is` keyword patterns so it is tokenized as
`keyword.operator.type.php` instead of `constant.other.php`.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@mszabo-wikia mszabo-wikia merged commit e443ed6 into master Apr 9, 2026
5 checks passed
@mszabo-wikia mszabo-wikia deleted the fix-upcast-syntax-highlight branch April 9, 2026 21:49
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