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