Skip to content

fix: reorder grammar patterns for 'with expiration'#46

Merged
tstirrat15 merged 1 commit intoauthzed:mainfrom
ivanauth:fix/issue-40-highlight-position
Jan 13, 2026
Merged

fix: reorder grammar patterns for 'with expiration'#46
tstirrat15 merged 1 commit intoauthzed:mainfrom
ivanauth:fix/issue-40-highlight-position

Conversation

@ivanauth
Copy link
Contributor

Description

Reorder TextMate grammar patterns so with_expiration is matched before with_caveat.

Previously, with_caveat (which matches with + any identifier) was checked first, incorrectly matching with expiration as a caveat named "expiration" instead of the expiration keyword.

Fixes #40

Copy link
Collaborator

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tstirrat15 tstirrat15 merged commit eb28a1c into authzed:main Jan 13, 2026
3 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 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.

incorrect position of red highlight

2 participants