From 3b533422dff37599b711d285b975a7ade600f6ff Mon Sep 17 00:00:00 2001 From: kiyan Date: Mon, 27 Sep 2021 21:36:10 +0200 Subject: 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. --- queries/ecma/highlights.scm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index a1034a62..8bc2c0c8 100644 --- a/queries/ecma/highlights.scm +++ b/queries/ecma/highlights.scm @@ -172,16 +172,16 @@ (ternary_expression ["?" ":"] @conditional) (unary_expression ["!" "~" "-" "+" "delete" "void" "typeof"] @operator) -"(" @punctuation.bracket -")" @punctuation.bracket -"[" @punctuation.bracket -"]" @punctuation.bracket -"{" @punctuation.bracket -"}" @punctuation.bracket - -((template_substitution ["${" "}"] @punctuation.special) @none - ; Substitutions should have a higher priority than injections. - (#set! "priority" 105)) +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +((template_substitution ["${" "}"] @punctuation.special) @none) ; Keywords ;---------- -- cgit v1.2.3