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:
kiyan 2021-09-27 21:36:10 +02:00 committed by Stephan Seitz
parent e0e6d1b263
commit 3b533422df

View file

@ -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
;---------- ;----------