Improve capturing of delimited_symbol nodes with string content.

This commit is contained in:
Cameron 2025-12-08 09:26:28 +01:00 committed by GitHub
parent aa50c97bb1
commit e673a904e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,16 +186,13 @@
[ [
(bare_symbol) (bare_symbol)
(simple_symbol) (simple_symbol)
(delimited_symbol)
(hash_key_symbol) (hash_key_symbol)
] @string.special.symbol ] @string.special.symbol
(delimited_symbol (delimited_symbol
(string_content) @string.special.symbol) ":\"" @string.special.symbol
(string_content) @string.special.symbol
; Ensure "symbol" highlight has priority over "string" highlight for closing quote character. "\"" @string.special.symbol)
((delimited_symbol) @string.special.symbol
(#set! priority 101))
(regex (regex
(string_content) @string.regexp) (string_content) @string.regexp)