mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
fix: remove priority in ecma template substitution hl
This PR removes the priority override for the interpolation because it overrides every ecma based template literal, setting none with a higher priority than ecma groups which made every template string look `un`highlighted.
This commit is contained in:
parent
e0e6d1b263
commit
3b533422df
1 changed files with 9 additions and 9 deletions
|
|
@ -172,16 +172,16 @@
|
||||||
(ternary_expression ["?" ":"] @conditional)
|
(ternary_expression ["?" ":"] @conditional)
|
||||||
(unary_expression ["!" "~" "-" "+" "delete" "void" "typeof"] @operator)
|
(unary_expression ["!" "~" "-" "+" "delete" "void" "typeof"] @operator)
|
||||||
|
|
||||||
"(" @punctuation.bracket
|
[
|
||||||
")" @punctuation.bracket
|
"("
|
||||||
"[" @punctuation.bracket
|
")"
|
||||||
"]" @punctuation.bracket
|
"["
|
||||||
"{" @punctuation.bracket
|
"]"
|
||||||
"}" @punctuation.bracket
|
"{"
|
||||||
|
"}"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
((template_substitution ["${" "}"] @punctuation.special) @none
|
((template_substitution ["${" "}"] @punctuation.special) @none)
|
||||||
; Substitutions should have a higher priority than injections.
|
|
||||||
(#set! "priority" 105))
|
|
||||||
|
|
||||||
; Keywords
|
; Keywords
|
||||||
;----------
|
;----------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue