summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
authormhoffm <mhoffm@posteo.de>2021-06-30 23:39:24 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2021-07-02 01:56:25 +0200
commit1914317ae7075b35fd19c6f135ad1cc1ae0863ab (patch)
treeda074775b6b0324771f7355540c0121ef8e39da5 /queries
parentfabc31276e953f4fb60f07d1def379199b8d3860 (diff)
work on queries
Diffstat (limited to 'queries')
-rw-r--r--queries/hcl/highlights.scm19
1 files changed, 13 insertions, 6 deletions
diff --git a/queries/hcl/highlights.scm b/queries/hcl/highlights.scm
index 2e0929fc..b53faf04 100644
--- a/queries/hcl/highlights.scm
+++ b/queries/hcl/highlights.scm
@@ -36,11 +36,15 @@
[
(ellipsis)
"\?"
- ":"
"=>"
] @punctuation.special
[
+ ":"
+ "="
+] @none
+
+[
"for"
"in"
] @repeat
@@ -55,19 +59,22 @@
(heredoc_template)
] @string
+
+[
+ (heredoc_identifier) @punctuation.delimiter
+ (heredoc_start) @punctuation.delimiter
+]
+
(template_interpolation) @string.escape
-(heredoc_identifier) @namespace
-(heredoc_start) @namespace
(numeric_lit) @number
(bool_lit) @boolean
(null_lit) @constant
(comment) @comment
(identifier) @symbol
-(block (identifier) @namespace)
+(block (identifier) @type)
(function_call (identifier) @function)
-(function_call (function_arguments) @parameter)
-(attribute (identifier) @symbol)
+(attribute (identifier) @keyword)
(ERROR) @error