aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lockfile.json2
-rw-r--r--queries/hcl/highlights.scm16
2 files changed, 11 insertions, 7 deletions
diff --git a/lockfile.json b/lockfile.json
index ec10d4fd1..38d04a745 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -90,7 +90,7 @@
"revision": "bf7d643b494b7c7eed909ed7fbd8447231152cb0"
},
"hcl": {
- "revision": "b048a42c6d907ff04e1a82e8dadcd9e8957024a1"
+ "revision": "3cb7fc28247efbcb2973b97e71c78838ad98a583"
},
"heex": {
"revision": "1dfda4f3c86ea39bcd9e89b5ed21a44d0c94a5a5"
diff --git a/queries/hcl/highlights.scm b/queries/hcl/highlights.scm
index 5305df96d..67e85cb61 100644
--- a/queries/hcl/highlights.scm
+++ b/queries/hcl/highlights.scm
@@ -46,11 +46,14 @@
[
"for"
+ "endfor"
"in"
] @repeat
[
"if"
+ "else"
+ "endif"
] @conditional
[
@@ -64,12 +67,13 @@
(heredoc_start) ; END
] @punctuation.delimiter
-( template_interpolation
- [
- (template_interpolation_start) ; ${
- (template_interpolation_end) ; }
- ] @punctuation.special
-)
+[
+ (template_interpolation_start) ; ${
+ (template_interpolation_end) ; }
+ (template_directive_start) ; %{
+ (template_directive_end) ; }
+ (strip_marker) ; ~
+] @punctuation.special
(numeric_lit) @number
(bool_lit) @boolean