aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authormhoffm <mhoffm@posteo.de>2021-07-02 08:40:08 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2021-07-02 19:48:19 +0200
commite607de4e1e0872935edceccd371e9f0769a88b01 (patch)
treed54da152cd610afd24377fa13193de6fd3958e43 /queries
parentfix missing maintainer in hcl parser config (diff)
downloadnvim-treesitter-e607de4e1e0872935edceccd371e9f0769a88b01.tar
nvim-treesitter-e607de4e1e0872935edceccd371e9f0769a88b01.tar.gz
nvim-treesitter-e607de4e1e0872935edceccd371e9f0769a88b01.tar.bz2
nvim-treesitter-e607de4e1e0872935edceccd371e9f0769a88b01.tar.lz
nvim-treesitter-e607de4e1e0872935edceccd371e9f0769a88b01.tar.xz
nvim-treesitter-e607de4e1e0872935edceccd371e9f0769a88b01.tar.zst
nvim-treesitter-e607de4e1e0872935edceccd371e9f0769a88b01.zip
update lockfile to point to v0.4.0; update highlight queries
Diffstat (limited to 'queries')
-rw-r--r--queries/hcl/highlights.scm21
1 files changed, 14 insertions, 7 deletions
diff --git a/queries/hcl/highlights.scm b/queries/hcl/highlights.scm
index f68137c42..889f1ab50 100644
--- a/queries/hcl/highlights.scm
+++ b/queries/hcl/highlights.scm
@@ -54,18 +54,20 @@
] @conditional
[
- (string_lit)
- (quoted_template)
- (heredoc_template)
+ (quoted_template_start) ; "
+ (quoted_template_end); "
+ (template_literal) ; non-interpolation/directive content
] @string
-
[
- (heredoc_identifier)
- (heredoc_start)
+ (heredoc_identifier) ; <<END
+ (heredoc_start) ; END
] @punctuation.delimiter
-(template_interpolation) @string.escape
+[
+ (template_interpolation_start) ; ${
+ (template_interpolation_end) ; }
+] @string.escape
(numeric_lit) @number
(bool_lit) @boolean
@@ -77,4 +79,9 @@
(function_call (identifier) @function)
(attribute (identifier) @field)
+; { key: val }
+;
+; highlight identifier keys as though they were block attributes
+(object_elem key: (expression (variable_expr (identifier) @field)))
+
(ERROR) @error