aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/goctl/indents.scm15
1 files changed, 15 insertions, 0 deletions
diff --git a/queries/goctl/indents.scm b/queries/goctl/indents.scm
new file mode 100644
index 000000000..ffa126905
--- /dev/null
+++ b/queries/goctl/indents.scm
@@ -0,0 +1,15 @@
+[
+ (importGroup)
+ (typeGroupSpec)
+ (structType)
+ (infoStatement)
+ (serviceServerSpec)
+ (serviceSpec)
+] @indent.begin
+
+[
+ ")"
+ "}"
+] @indent.branch @indent.end
+
+(comment) @indent.ignore