aboutsummaryrefslogtreecommitdiffstats
path: root/queries/hcl
diff options
context:
space:
mode:
authorMichael Hoffmann <mhoffm@posteo.de>2022-04-23 11:17:10 +0200
committerStephan Seitz <stephan.seitz@fau.de>2022-04-24 18:57:30 +0200
commitb1e8b61a94955d747ba8ad02cd3c0dddb1bf883f (patch)
treeddebbbb900d55a78f0242325b9b0c812275dee9e /queries/hcl
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-b1e8b61a94955d747ba8ad02cd3c0dddb1bf883f.tar
nvim-treesitter-b1e8b61a94955d747ba8ad02cd3c0dddb1bf883f.tar.gz
nvim-treesitter-b1e8b61a94955d747ba8ad02cd3c0dddb1bf883f.tar.bz2
nvim-treesitter-b1e8b61a94955d747ba8ad02cd3c0dddb1bf883f.tar.lz
nvim-treesitter-b1e8b61a94955d747ba8ad02cd3c0dddb1bf883f.tar.xz
nvim-treesitter-b1e8b61a94955d747ba8ad02cd3c0dddb1bf883f.tar.zst
nvim-treesitter-b1e8b61a94955d747ba8ad02cd3c0dddb1bf883f.zip
indents(hcl): fix indentation queries
This commit adds tests for hcl indentation and fixes various bugs
Diffstat (limited to 'queries/hcl')
-rw-r--r--queries/hcl/indents.scm17
1 files changed, 13 insertions, 4 deletions
diff --git a/queries/hcl/indents.scm b/queries/hcl/indents.scm
index b0f0bc9bb..c316628ba 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