aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/go/folds.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/queries/go/folds.scm b/queries/go/folds.scm
new file mode 100644
index 000000000..c79d45720
--- /dev/null
+++ b/queries/go/folds.scm
@@ -0,0 +1,13 @@
+[
+ (const_declaration)
+ (expression_switch_statement)
+ (for_statement)
+ (func_literal)
+ (function_declaration)
+ (if_statement)
+ (import_declaration)
+ (method_declaration)
+ (type_declaration)
+ (var_declaration)
+] @fold
+