mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 15:00:04 -04:00
indents(hcl): fix indentation queries
This commit adds tests for hcl indentation and fixes various bugs
This commit is contained in:
parent
91f912f2d1
commit
b1e8b61a94
9 changed files with 84 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue