diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-08-13 13:24:52 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-09-17 22:08:12 +0200 |
| commit | 8b7f70d366192bccae4077664ee1cc46e5d5217d (patch) | |
| tree | 90c7673aedc32c7b41e8881402396e75f3402018 | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-treesitter-8b7f70d366192bccae4077664ee1cc46e5d5217d.tar nvim-treesitter-8b7f70d366192bccae4077664ee1cc46e5d5217d.tar.gz nvim-treesitter-8b7f70d366192bccae4077664ee1cc46e5d5217d.tar.bz2 nvim-treesitter-8b7f70d366192bccae4077664ee1cc46e5d5217d.tar.lz nvim-treesitter-8b7f70d366192bccae4077664ee1cc46e5d5217d.tar.xz nvim-treesitter-8b7f70d366192bccae4077664ee1cc46e5d5217d.tar.zst nvim-treesitter-8b7f70d366192bccae4077664ee1cc46e5d5217d.zip | |
Ecma: increase priority of template_substitution
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1688
| -rw-r--r-- | queries/ecma/highlights.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index d3e986a1e..a1034a62a 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 ;---------- |
