nvim-treesitter/runtime/queries/hare/indents.scm

46 lines
450 B
Scheme
Raw Permalink Normal View History

2023-03-11 03:02:30 -05:00
[
(enum_type)
(struct_type)
(tuple_type)
(union_type)
(block)
(for_statement)
(call_expression)
(case)
(array_literal)
(struct_literal)
(tuple_literal)
] @indent.begin
2023-03-11 03:02:30 -05:00
(if_statement
2024-01-06 15:05:50 +09:00
("("
2024-08-01 15:40:23 +09:00
condition: (_)
")") @indent.begin)
2023-03-11 03:02:30 -05:00
[
"}"
"]"
")"
] @indent.end
2023-03-11 03:02:30 -05:00
2024-01-06 15:05:50 +09:00
[
"{"
"}"
] @indent.branch
2023-03-11 03:02:30 -05:00
2024-01-06 15:05:50 +09:00
[
"["
"]"
] @indent.branch
2023-03-11 03:02:30 -05:00
2024-01-06 15:05:50 +09:00
[
"("
")"
] @indent.branch
2023-03-11 03:02:30 -05:00
[
(ERROR)
(comment)
(concatenated_string)
] @indent.auto