Skip to content

Fix syntax highlighting of self keyword#133

Merged
miparnisari merged 1 commit intoauthzed:mainfrom
ivanauth:fix/self-keyword-syntax-highlighting
Mar 30, 2026
Merged

Fix syntax highlighting of self keyword#133
miparnisari merged 1 commit intoauthzed:mainfrom
ivanauth:fix/self-keyword-syntax-highlighting

Conversation

@ivanauth
Copy link
Copy Markdown
Contributor

@ivanauth ivanauth commented Mar 27, 2026

Fixes #104.

Description

The self keyword in permission expressions was incorrectly highlighted in red, as if it were an unknown reference.

Changes

  • Add self as a recognized keyword token in the Monarch tokenizer
  • Skip self in the semantic tokens provider so it isn't overridden as property.unknown
  • Add keyword.self theme entries for both light and dark themes
Screenshot 2026-03-27 at 12 38 53 PM

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@ivanauth is attempting to deploy a commit to the authzed Team on Vercel.

A member of the Team first needs to authorize it.

@ivanauth ivanauth force-pushed the fix/self-keyword-syntax-highlighting branch from eaac65d to ea2affa Compare March 27, 2026 20:37
@miparnisari miparnisari merged commit a15b5b2 into authzed:main Mar 30, 2026
3 of 4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Look into syntax highlighting of self keyword

2 participants