summaryrefslogtreecommitdiff
path: root/queries/go
diff options
context:
space:
mode:
authorelianiva <dicha.arkana03@gmail.com>2021-01-05 19:26:08 +0700
committerThomas Vigouroux <tomvig38@gmail.com>2021-01-14 14:43:04 +0100
commit9184cf395372307df5fd4d7b2cc89f6dea698285 (patch)
tree2ca2a5120cac413e04e2a2638a228df0b4649aec /queries/go
parent72656dcf3c7633bf1c3cd453db9522ed1871cf67 (diff)
feat: added more indent queries
Diffstat (limited to 'queries/go')
-rw-r--r--queries/go/indents.scm17
1 files changed, 17 insertions, 0 deletions
diff --git a/queries/go/indents.scm b/queries/go/indents.scm
new file mode 100644
index 00000000..07e35477
--- /dev/null
+++ b/queries/go/indents.scm
@@ -0,0 +1,17 @@
+[
+ (import_declaration)
+ (function_declaration)
+ (const_declaration)
+ (var_declaration)
+ (type_declaration)
+ (composite_literal)
+ (func_literal)
+ (block)
+] @indent
+
+[
+ "("
+ ")"
+ "{"
+ "}"
+] @branch