aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/go
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-05-14 16:34:34 +0000
committerBlaž Hrastnik2021-05-15 08:17:26 +0000
commit31d41080edd216649d1db9ec7303561c58716d1d (patch)
tree361cdcf647e4af47269076c7c2cbec9b2cf85878 /runtime/queries/go
parent5e6b46e7c5e322528784338222808bfc0266ef05 (diff)
Add indentation queries for golang.
Diffstat (limited to 'runtime/queries/go')
-rw-r--r--runtime/queries/go/indents.toml21
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/queries/go/indents.toml b/runtime/queries/go/indents.toml
new file mode 100644
index 00000000..d75ef7ec
--- /dev/null
+++ b/runtime/queries/go/indents.toml
@@ -0,0 +1,21 @@
+indent = [
+ "import_declaration",
+ "const_declaration",
+ "var_declaration",
+ "function_declaration",
+ "method_declaration",
+ "composite_literal",
+ "func_literal",
+ "literal_value",
+ "expression_case",
+ "default_case",
+ "argument_list",
+ "block"
+]
+
+outdent = [
+ "case",
+ "}",
+ "]",
+ ")"
+]