2021-06-14 15:46:13 -05:00
|
|
|
[
|
|
|
|
|
(struct_definition)
|
|
|
|
|
(macro_definition)
|
|
|
|
|
(function_definition)
|
2022-12-14 03:06:08 -05:00
|
|
|
(compound_statement)
|
2021-06-14 15:46:13 -05:00
|
|
|
(if_statement)
|
|
|
|
|
(try_statement)
|
|
|
|
|
(for_statement)
|
|
|
|
|
(while_statement)
|
|
|
|
|
(let_statement)
|
|
|
|
|
(quote_statement)
|
|
|
|
|
(do_clause)
|
2022-12-03 11:42:07 +01:00
|
|
|
(assignment)
|
2022-12-14 03:06:08 -05:00
|
|
|
(for_binding)
|
2021-06-14 15:46:13 -05:00
|
|
|
(call_expression)
|
2023-10-28 10:23:50 -03:00
|
|
|
(parenthesized_expression)
|
2021-06-14 15:46:13 -05:00
|
|
|
(tuple_expression)
|
2022-12-14 03:06:08 -05:00
|
|
|
(comprehension_expression)
|
2021-06-14 15:46:13 -05:00
|
|
|
(matrix_expression)
|
2022-12-14 03:06:08 -05:00
|
|
|
(vector_expression)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.begin
|
2021-06-14 15:46:13 -05:00
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"end"
|
2023-10-27 09:53:58 -03:00
|
|
|
")"
|
|
|
|
|
"]"
|
|
|
|
|
"}"
|
2023-10-27 09:28:44 -03:00
|
|
|
] @indent.end
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"end"
|
2021-06-14 15:46:13 -05:00
|
|
|
")"
|
|
|
|
|
"]"
|
2023-10-27 09:53:58 -03:00
|
|
|
"}"
|
2021-06-14 15:46:13 -05:00
|
|
|
(else_clause)
|
|
|
|
|
(elseif_clause)
|
2021-06-16 17:14:28 -05:00
|
|
|
(catch_clause)
|
|
|
|
|
(finally_clause)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.branch
|
2021-06-14 15:46:13 -05:00
|
|
|
|
|
|
|
|
[
|
2022-04-15 10:30:46 +02:00
|
|
|
(line_comment)
|
2021-06-14 15:46:13 -05:00
|
|
|
(block_comment)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.ignore
|
2021-06-14 15:46:13 -05:00
|
|
|
|
2023-10-28 10:23:50 -03:00
|
|
|
((argument_list) @indent.align
|
|
|
|
|
(#set! indent.open_delimiter "(")
|
|
|
|
|
(#set! indent.close_delimiter ")"))
|
|
|
|
|
|
2023-10-28 17:25:25 -03:00
|
|
|
((curly_expression) @indent.align
|
|
|
|
|
(#set! indent.open_delimiter "{")
|
|
|
|
|
(#set! indent.close_delimiter "}"))
|