summaryrefslogtreecommitdiff
path: root/runtime/queries/ada/folds.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/ada/folds.scm')
-rw-r--r--runtime/queries/ada/folds.scm15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/queries/ada/folds.scm b/runtime/queries/ada/folds.scm
new file mode 100644
index 00000000..819d92cc
--- /dev/null
+++ b/runtime/queries/ada/folds.scm
@@ -0,0 +1,15 @@
+; Support for folding in Ada
+;; za toggles folding a package, subprogram, if statement or loop
+
+[
+ (package_declaration)
+ (generic_package_declaration)
+ (package_body)
+ (subprogram_declaration)
+ (subprogram_body)
+ (block_statement)
+ (if_statement)
+ (loop_statement)
+ (gnatprep_declarative_if_statement)
+ (gnatprep_if_statement)
+] @fold