mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
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:
parent
42fc28ba91
commit
11c47fe2ca
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue