diff options
| author | mhoffm <mhoffm@posteo.de> | 2021-09-20 21:58:20 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-09-20 22:39:32 +0200 |
| commit | 09ad32c91bbc6a2813c1293d2373c6604e0f6ea4 (patch) | |
| tree | 7f7aff57465930198809f28fd18bf51e032e23c5 | |
| parent | 85a49875c67b165b22b1e93175f27e6d9c690d02 (diff) | |
update hcl parser, update queries
| -rw-r--r-- | lockfile.json | 2 | ||||
| -rw-r--r-- | queries/hcl/highlights.scm | 16 |
2 files changed, 11 insertions, 7 deletions
diff --git a/lockfile.json b/lockfile.json index ec10d4fd..38d04a74 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 5305df96..67e85cb6 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 |
