aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authormhoffm <mhoffm@posteo.de>2021-07-02 16:53:19 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2021-07-02 19:48:19 +0200
commit8eb29ef93e8bbe18b391bb0a3d3c33bf9da4f7cc (patch)
tree2deb09b6f602e453ee88dcb61d4a29074d603948 /queries
parentupdate lockfile to point to v0.4.0; update highlight queries (diff)
downloadnvim-treesitter-8eb29ef93e8bbe18b391bb0a3d3c33bf9da4f7cc.tar
nvim-treesitter-8eb29ef93e8bbe18b391bb0a3d3c33bf9da4f7cc.tar.gz
nvim-treesitter-8eb29ef93e8bbe18b391bb0a3d3c33bf9da4f7cc.tar.bz2
nvim-treesitter-8eb29ef93e8bbe18b391bb0a3d3c33bf9da4f7cc.tar.lz
nvim-treesitter-8eb29ef93e8bbe18b391bb0a3d3c33bf9da4f7cc.tar.xz
nvim-treesitter-8eb29ef93e8bbe18b391bb0a3d3c33bf9da4f7cc.tar.zst
nvim-treesitter-8eb29ef93e8bbe18b391bb0a3d3c33bf9da4f7cc.zip
highlight template interpolation enclosures as punctuation.bracket; cleanup
Diffstat (limited to 'queries')
-rw-r--r--queries/hcl/highlights.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/queries/hcl/highlights.scm b/queries/hcl/highlights.scm
index 889f1ab50..0e70dee27 100644
--- a/queries/hcl/highlights.scm
+++ b/queries/hcl/highlights.scm
@@ -64,10 +64,12 @@
(heredoc_start) ; END
] @punctuation.delimiter
-[
- (template_interpolation_start) ; ${
- (template_interpolation_end) ; }
-] @string.escape
+( template_interpolation
+ [
+ (template_interpolation_start) ; ${
+ (template_interpolation_end) ; }
+ ] @punctuation.bracket
+)
(numeric_lit) @number
(bool_lit) @boolean