aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/go
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/go')
-rw-r--r--runtime/queries/go/indents.scm26
-rw-r--r--runtime/queries/go/indents.toml30
2 files changed, 26 insertions, 30 deletions
diff --git a/runtime/queries/go/indents.scm b/runtime/queries/go/indents.scm
new file mode 100644
index 00000000..d75417d9
--- /dev/null
+++ b/runtime/queries/go/indents.scm
@@ -0,0 +1,26 @@
+[
+ (import_declaration)
+ (const_declaration)
+ (type_declaration)
+ (type_spec)
+ (func_literal)
+ (literal_value)
+ (element)
+ (keyed_element)
+ (expression_case)
+ (default_case)
+ (type_case)
+ (communication_case)
+ (argument_list)
+ (field_declaration_list)
+ (block)
+ (type_switch_statement)
+ (expression_switch_statement)
+] @indent
+
+[
+ "case"
+ "}"
+ "]"
+ ")"
+] @outdent
diff --git a/runtime/queries/go/indents.toml b/runtime/queries/go/indents.toml
deleted file mode 100644
index 7929ff50..00000000
--- a/runtime/queries/go/indents.toml
+++ /dev/null
@@ -1,30 +0,0 @@
-indent = [
- "import_declaration",
- "const_declaration",
- #"var_declaration",
- #"short_var_declaration",
- "type_declaration",
- "type_spec",
- # simply block should be enough
- # "function_declaration",
- # "method_declaration",
- # "composite_literal",
- "func_literal",
- "literal_value",
- "element",
- "keyed_element",
- "expression_case",
- "default_case",
- "type_case",
- "communication_case",
- "argument_list",
- "field_declaration_list",
- "block",
-]
-
-outdent = [
- "case",
- "}",
- "]",
- ")"
-]