Ensure string-symbols are highlighted properly

Ensure the entire symbol is highlighted properly, not just the leading `:"` characters.

set priority for closing `"` character so it has symbol highlight applied, instead of string highlight
This commit is contained in:
Cameron 2025-12-04 12:47:59 +01:00 committed by GitHub
parent 42fc28ba91
commit 11c47fe2ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -193,6 +193,12 @@
(hash_key_symbol)
] @string.special.symbol
(delimited_symbol
(string_content) @string.special.symbol)
; Ensure "symbol" highlight has priority over "string" highlight for closing " char.
((delimited_symbol) @string.special.symbol (#set! priority 101))
(regex
(string_content) @string.regexp)