Fix highlighting for string-literal symbols.

This commit is contained in:
Cameron 2025-12-05 10:58:26 +01:00 committed by GitHub
parent 75797cdd8a
commit aa50c97bb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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