From b1e8b61a94955d747ba8ad02cd3c0dddb1bf883f Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Sat, 23 Apr 2022 11:17:10 +0200 Subject: indents(hcl): fix indentation queries This commit adds tests for hcl indentation and fixes various bugs --- queries/hcl/indents.scm | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'queries') diff --git a/queries/hcl/indents.scm b/queries/hcl/indents.scm index b0f0bc9b..c316628b 100644 --- a/queries/hcl/indents.scm +++ b/queries/hcl/indents.scm @@ -1,13 +1,22 @@ [ - (object) (block) + (object) (tuple) - (for_tuple_expr) - (for_object_expr) ] @indent [ - (object_end) (block_end) + (object_end) (tuple_end) ] @branch + + +[ + "]" + ")" + "}" +] @indent_end + + +(comment) @auto +(ERROR) @auto -- cgit v1.2.3