summaryrefslogtreecommitdiff
path: root/queries/hcl
diff options
context:
space:
mode:
authorMatthew Wynn <matthew.wynn@betterhelp.com>2021-09-16 12:51:42 -0700
committerStephan Seitz <stephan.seitz@fau.de>2021-09-16 22:26:48 +0200
commit649a7e6fe6df3abc5c30d212ba51e26d9ca83d60 (patch)
tree7f48f580f3262ad4715bef7ed98894322aa99392 /queries/hcl
parent1b6e5abfcdc5ddeef6d2a072cc8ce333556f5553 (diff)
indents(hcl): add more indentation rules for HCL
Diffstat (limited to 'queries/hcl')
-rw-r--r--queries/hcl/indents.scm13
1 files changed, 11 insertions, 2 deletions
diff --git a/queries/hcl/indents.scm b/queries/hcl/indents.scm
index 5315d62b..b0f0bc9b 100644
--- a/queries/hcl/indents.scm
+++ b/queries/hcl/indents.scm
@@ -1,4 +1,13 @@
[
- "}"
- "]"
+ (object)
+ (block)
+ (tuple)
+ (for_tuple_expr)
+ (for_object_expr)
+] @indent
+
+[
+ (object_end)
+ (block_end)
+ (tuple_end)
] @branch