mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Fix highlighting for string-literal symbols.
This commit is contained in:
parent
75797cdd8a
commit
aa50c97bb1
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue