mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Improve capturing of delimited_symbol nodes with string content.
This commit is contained in:
parent
aa50c97bb1
commit
e673a904e7
1 changed files with 3 additions and 6 deletions
|
|
@ -186,16 +186,13 @@
|
|||
[
|
||||
(bare_symbol)
|
||||
(simple_symbol)
|
||||
(delimited_symbol)
|
||||
(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))
|
||||
":\"" @string.special.symbol
|
||||
(string_content) @string.special.symbol
|
||||
"\"" @string.special.symbol)
|
||||
|
||||
(regex
|
||||
(string_content) @string.regexp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue