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 | |
| parent | Add headers as an option to fold on (#1873) (diff) | |
| download | nvim-treesitter-3b533422dff37599b711d285b975a7ade600f6ff.tar nvim-treesitter-3b533422dff37599b711d285b975a7ade600f6ff.tar.gz nvim-treesitter-3b533422dff37599b711d285b975a7ade600f6ff.tar.bz2 nvim-treesitter-3b533422dff37599b711d285b975a7ade600f6ff.tar.lz nvim-treesitter-3b533422dff37599b711d285b975a7ade600f6ff.tar.xz nvim-treesitter-3b533422dff37599b711d285b975a7ade600f6ff.tar.zst nvim-treesitter-3b533422dff37599b711d285b975a7ade600f6ff.zip | |
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.
| -rw-r--r-- | queries/ecma/highlights.scm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index a1034a62a..8bc2c0c81 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 +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket -((template_substitution ["${" "}"] @punctuation.special) @none - ; Substitutions should have a higher priority than injections. - (#set! "priority" 105)) +((template_substitution ["${" "}"] @punctuation.special) @none) ; Keywords ;---------- |
