2023-12-10 11:16:24 +04:00
|
|
|
[
|
2024-12-29 12:17:08 -03:00
|
|
|
(array_expression)
|
|
|
|
|
(assert_statement)
|
|
|
|
|
(assignment_statement)
|
|
|
|
|
(block)
|
2024-01-06 15:05:50 +09:00
|
|
|
(constant_declaration)
|
|
|
|
|
(expression_statement)
|
2024-12-29 12:17:08 -03:00
|
|
|
(items_block)
|
2024-01-06 15:05:50 +09:00
|
|
|
(loop_statement)
|
2024-12-29 12:17:08 -03:00
|
|
|
(mapping_declaration)
|
|
|
|
|
(parenthesized_expression)
|
|
|
|
|
(record_declaration)
|
|
|
|
|
(return_statement)
|
|
|
|
|
(struct_declaration)
|
2024-01-06 15:05:50 +09:00
|
|
|
(struct_expression)
|
|
|
|
|
(tuple_expression)
|
2024-12-29 12:17:08 -03:00
|
|
|
(variable_declaration)
|
2023-12-10 11:16:24 +04:00
|
|
|
] @indent.begin
|
2024-01-20 18:47:56 +09:00
|
|
|
|
2023-12-10 11:16:24 +04:00
|
|
|
((function_parameters) @indent.align
|
|
|
|
|
(#set! indent.open_delimiter "(")
|
|
|
|
|
(#set! indent.close_delimiter ")"))
|
|
|
|
|
|
2025-01-03 15:07:57 -03:00
|
|
|
((function_arguments) @indent.align
|
|
|
|
|
(#set! indent.open_delimiter "(")
|
|
|
|
|
(#set! indent.close_delimiter ")"))
|
|
|
|
|
|
|
|
|
|
(parenthesized_expression
|
|
|
|
|
")" @indent.branch)
|
|
|
|
|
|
|
|
|
|
(function_parameters
|
|
|
|
|
")" @indent.branch)
|
|
|
|
|
|
|
|
|
|
(function_arguments
|
|
|
|
|
")" @indent.branch)
|
|
|
|
|
|
2024-12-29 12:17:08 -03:00
|
|
|
(record_declaration
|
|
|
|
|
"}" @indent.branch)
|
|
|
|
|
|
|
|
|
|
(struct_declaration
|
|
|
|
|
"}" @indent.branch)
|
|
|
|
|
|
|
|
|
|
(struct_expression
|
|
|
|
|
"}" @indent.branch)
|
|
|
|
|
|
|
|
|
|
(array_expression
|
2025-01-03 15:07:57 -03:00
|
|
|
"]" @indent.branch)
|
2024-12-29 12:17:08 -03:00
|
|
|
|
|
|
|
|
(tuple_expression
|
2025-01-03 15:07:57 -03:00
|
|
|
")" @indent.branch)
|
2024-12-29 12:17:08 -03:00
|
|
|
|
|
|
|
|
(items_block
|
|
|
|
|
"}" @indent.branch)
|
|
|
|
|
|
|
|
|
|
(block
|
|
|
|
|
"}" @indent.branch)
|
|
|
|
|
|
2023-12-10 11:16:24 +04:00
|
|
|
[
|
2024-01-06 15:05:50 +09:00
|
|
|
(comment)
|
|
|
|
|
(ERROR)
|
2023-12-10 11:16:24 +04:00
|
|
|
] @indent.auto
|