diff options
| author | Michael Hoffmann <mhoffm@posteo.de> | 2022-04-23 11:17:10 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-04-24 18:57:30 +0200 |
| commit | b1e8b61a94955d747ba8ad02cd3c0dddb1bf883f (patch) | |
| tree | ddebbbb900d55a78f0242325b9b0c812275dee9e /queries | |
| parent | 91f912f2d17d1e2048cccca537d78f48753d7458 (diff) | |
indents(hcl): fix indentation queries
This commit adds tests for hcl indentation and fixes various bugs
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/hcl/indents.scm | 17 |
1 files changed, 13 insertions, 4 deletions
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 |
