mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -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)
|
(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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue