aboutsummaryrefslogtreecommitdiffstats
path: root/queries/hcl
diff options
context:
space:
mode:
authorMichael Hoffmann <mhoffm@posteo.de>2022-04-24 23:16:35 +0200
committerStephan Seitz <stephan.seitz@fau.de>2022-04-25 23:36:36 +0200
commit82e43748cf70adab261ba0a23a342774bd5b9088 (patch)
treec86943a612b0ab45801f7a3845310157e1778874 /queries/hcl
parentindents(hcl): fix indentation queries (diff)
downloadnvim-treesitter-82e43748cf70adab261ba0a23a342774bd5b9088.tar
nvim-treesitter-82e43748cf70adab261ba0a23a342774bd5b9088.tar.gz
nvim-treesitter-82e43748cf70adab261ba0a23a342774bd5b9088.tar.bz2
nvim-treesitter-82e43748cf70adab261ba0a23a342774bd5b9088.tar.lz
nvim-treesitter-82e43748cf70adab261ba0a23a342774bd5b9088.tar.xz
nvim-treesitter-82e43748cf70adab261ba0a23a342774bd5b9088.tar.zst
nvim-treesitter-82e43748cf70adab261ba0a23a342774bd5b9088.zip
indent(hcl): fix function calls
Diffstat (limited to 'queries/hcl')
-rw-r--r--queries/hcl/highlights.scm4
-rw-r--r--queries/hcl/indents.scm11
2 files changed, 4 insertions, 11 deletions
diff --git a/queries/hcl/highlights.scm b/queries/hcl/highlights.scm
index 67e85cb61..f6512148c 100644
--- a/queries/hcl/highlights.scm
+++ b/queries/hcl/highlights.scm
@@ -63,8 +63,8 @@
] @string
[
- (heredoc_identifier) ; <<END
- (heredoc_start) ; END
+ (heredoc_identifier) ; END
+ (heredoc_start) ; << or <<-
] @punctuation.delimiter
[
diff --git a/queries/hcl/indents.scm b/queries/hcl/indents.scm
index c316628ba..d68ec3081 100644
--- a/queries/hcl/indents.scm
+++ b/queries/hcl/indents.scm
@@ -2,21 +2,14 @@
(block)
(object)
(tuple)
+ (function_call)
] @indent
[
- (block_end)
- (object_end)
- (tuple_end)
-] @branch
-
-
-[
"]"
")"
"}"
-] @indent_end
-
+] @branch @indent_end
(comment) @auto
(ERROR) @auto