From 62551bca4e7c817b4dde6d1a38893f3c8a733d89 Mon Sep 17 00:00:00 2001 From: Claudia Hardman Date: Sat, 31 Oct 2020 15:51:24 -0400 Subject: Add folds for Go The default behavior in which `@scope` captures were folded resulted in toplevel fold for an entire source file, which was mildly irritating. --- queries/go/folds.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 queries/go/folds.scm 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 + -- cgit v1.2.3-70-g09d2