1
Files
flake-nixinator/config/neovim/store/nvim-treesitter/queries/hare/indents.scm

46 lines
450 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