summaryrefslogtreecommitdiff
path: root/runtime/queries/go/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/go/indents.scm')
-rw-r--r--runtime/queries/go/indents.scm26
1 files changed, 26 insertions, 0 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