summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-08-13 13:24:52 -0500
committerStephan Seitz <stephan.seitz@fau.de>2021-09-17 22:08:12 +0200
commit8b7f70d366192bccae4077664ee1cc46e5d5217d (patch)
tree90c7673aedc32c7b41e8881402396e75f3402018
parentb7cdd739e4b2c2ecddbba82059ca299f78fbd97e (diff)
Ecma: increase priority of template_substitution
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1688
-rw-r--r--queries/ecma/highlights.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm
index d3e986a1..a1034a62 100644
--- a/queries/ecma/highlights.scm
+++ b/queries/ecma/highlights.scm
@@ -179,9 +179,9 @@
"{" @punctuation.bracket
"}" @punctuation.bracket
-(template_substitution
- "${" @punctuation.special
- "}" @punctuation.special) @none
+((template_substitution ["${" "}"] @punctuation.special) @none
+ ; Substitutions should have a higher priority than injections.
+ (#set! "priority" 105))
; Keywords
;----------