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