From 8b7f70d366192bccae4077664ee1cc46e5d5217d Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Fri, 13 Aug 2021 13:24:52 -0500 Subject: Ecma: increase priority of template_substitution Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1688 --- queries/ecma/highlights.scm | 6 +++--- 1 file 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 ;---------- -- cgit v1.2.3