aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/ada/folds.scm
diff options
context:
space:
mode:
authorDamian Zaręba2024-03-19 12:28:15 +0000
committerGitHub2024-03-19 12:28:15 +0000
commit485c5cf0b81ed1f189c5bb06263667449d5684d6 (patch)
treea5da5324e53af5a6595045f4ad87f5a790feb518 /runtime/queries/ada/folds.scm
parent0b6dea6dc2f78376890beeb31b591987f7f5249b (diff)
Initial Ada language support (after stale) (#9908)
* Adding initial support for ada language, based off #7790 PR from tomekw * More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP * Generate ada in lang-support.md using cargo xtask docgen * Update tree-sitter definitions according to comments * Remove .gpr glob from languages.toml * Fix unit in languages.toml for ada, update locals.scm to helix needs
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