Skip to content

fix: highlight regex literals as one Vim region - #2

Open
HelgeSverre wants to merge 1 commit into
mainfrom
fix/regex-highlighting
Open

HelgeSverre wants to merge 1 commit into
mainfrom
fix/regex-highlighting

Conversation

@HelgeSverre

@HelgeSverre HelgeSverre commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

Problem: Vim left the leading hash character unscoped and styled raw regex backslashes as ordinary string escapes.

Cause: regex literals fell through to the generic string region.

Fix: add a dedicated regex region without string-escape children and add headless syntax assertions.

Tests: headless Vim regex syntax test; vint.

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.

1 participant