diff options
| author | kiyan <yazdani.kiyan@protonmail.com> | 2021-09-27 21:36:10 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-10-03 11:01:30 +0200 |
| commit | 3b533422dff37599b711d285b975a7ade600f6ff (patch) | |
| tree | 4789484acbbfd21261076e85fd70e7d32ee12039 /queries/ecma/highlights.scm | |
| parent | e0e6d1b263c2cc678ebf616e04495195ea45d5e2 (diff) | |
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.
Diffstat (limited to 'queries/ecma/highlights.scm')
| -rw-r--r-- | queries/ecma/highlights.scm | 20 |
1 files 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 ;---------- |
