indents(hcl): fix indentation queries

This commit adds tests for hcl indentation and fixes various bugs
This commit is contained in:
Michael Hoffmann 2022-04-23 11:17:10 +02:00 committed by Stephan Seitz
parent 91f912f2d1
commit b1e8b61a94
9 changed files with 84 additions and 4 deletions

View file

@ -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