1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 09:00:06 +08:00
SpaceVim/bundle/nvim-treesitter/queries/hare/indents.scm

37 lines
433 B
Scheme

[
(enum_type)
(struct_type)
(tuple_type)
(union_type)
(block)
(for_statement)
(call_expression)
(case)
(array_literal)
(struct_literal)
(tuple_literal)
] @indent.begin
(if_statement
("(" condition: (_) ")") @indent.begin)
[
"}"
"]"
")"
] @indent.end
[ "{" "}" ] @indent.branch
[ "[" "]" ] @indent.branch
[ "(" ")" ] @indent.branch
[
(ERROR)
(comment)
(concatenated_string)
] @indent.auto