2021-05-14 18:34:34 +02:00
|
|
|
indent = [
|
|
|
|
"import_declaration",
|
|
|
|
"const_declaration",
|
2021-08-16 05:13:06 +02:00
|
|
|
#"var_declaration",
|
|
|
|
#"short_var_declaration",
|
2021-05-18 10:54:18 +02:00
|
|
|
"type_declaration",
|
2021-05-27 17:00:51 +02:00
|
|
|
"type_spec",
|
2021-05-28 17:06:38 +02:00
|
|
|
# simply block should be enough
|
|
|
|
# "function_declaration",
|
|
|
|
# "method_declaration",
|
2021-08-16 05:13:06 +02:00
|
|
|
# "composite_literal",
|
2021-05-14 18:34:34 +02:00
|
|
|
"func_literal",
|
|
|
|
"literal_value",
|
2021-08-16 05:13:06 +02:00
|
|
|
"element",
|
|
|
|
"keyed_element",
|
2021-05-14 18:34:34 +02:00
|
|
|
"expression_case",
|
|
|
|
"default_case",
|
2021-06-01 10:26:10 +02:00
|
|
|
"type_case",
|
|
|
|
"communication_case",
|
2021-05-14 18:34:34 +02:00
|
|
|
"argument_list",
|
2021-08-16 05:13:06 +02:00
|
|
|
"field_declaration_list",
|
2021-05-31 10:09:19 +02:00
|
|
|
"block",
|
2021-05-14 18:34:34 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
outdent = [
|
|
|
|
"case",
|
|
|
|
"}",
|
|
|
|
"]",
|
|
|
|
")"
|
|
|
|
]
|