2022-04-14 12:01:23 +08:00
|
|
|
[
|
|
|
|
(import_declaration)
|
|
|
|
(const_declaration)
|
|
|
|
(var_declaration)
|
|
|
|
(type_declaration)
|
|
|
|
(func_literal)
|
|
|
|
(literal_value)
|
|
|
|
(expression_case)
|
2023-06-18 14:17:38 +08:00
|
|
|
(communication_case)
|
|
|
|
(type_case)
|
2022-04-14 12:01:23 +08:00
|
|
|
(default_case)
|
|
|
|
(block)
|
|
|
|
(call_expression)
|
|
|
|
(parameter_list)
|
2023-06-18 14:17:38 +08:00
|
|
|
(struct_type)
|
|
|
|
] @indent.begin
|
2022-04-14 12:01:23 +08:00
|
|
|
|
|
|
|
[
|
|
|
|
"}"
|
2023-06-18 14:17:38 +08:00
|
|
|
] @indent.branch
|
2022-04-14 12:01:23 +08:00
|
|
|
|
2023-06-18 14:17:38 +08:00
|
|
|
(const_declaration ")" @indent.branch)
|
|
|
|
(import_spec_list ")" @indent.branch)
|
|
|
|
(var_declaration ")" @indent.branch)
|
2022-04-14 12:01:23 +08:00
|
|
|
|
2023-06-18 14:17:38 +08:00
|
|
|
[
|
|
|
|
"}"
|
|
|
|
")"
|
|
|
|
] @indent.end
|
|
|
|
|
|
|
|
(parameter_list ")" @indent.branch)
|
|
|
|
|
|
|
|
(comment) @indent.ignore
|