diff options
author | Damian Zaręba | 2024-03-19 12:28:15 +0000 |
---|---|---|
committer | GitHub | 2024-03-19 12:28:15 +0000 |
commit | 485c5cf0b81ed1f189c5bb06263667449d5684d6 (patch) | |
tree | a5da5324e53af5a6595045f4ad87f5a790feb518 /runtime/queries/ada/textobjects.scm | |
parent | 0b6dea6dc2f78376890beeb31b591987f7f5249b (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/textobjects.scm')
-rw-r--r-- | runtime/queries/ada/textobjects.scm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/queries/ada/textobjects.scm b/runtime/queries/ada/textobjects.scm new file mode 100644 index 00000000..284b4125 --- /dev/null +++ b/runtime/queries/ada/textobjects.scm @@ -0,0 +1,21 @@ +;; Support for high-level text objects selections. +;; For instance: +;; maf (v)isually select (a) (f)unction or subprogram +;; mif (v)isually select (i)nside a (f)unction or subprogram +;; mai (v)isually select (a) (i)f statement (or loop) +;; mii (v)isually select (i)nside an (i)f statement (or loop) +;; +;; For navigations using textobjects, check link below: +;; https://docs.helix-editor.com/master/usage.html#navigating-using-tree-sitter-textobjects +;; +;; For Textobject queries explaination, check out link below: +;; https://docs.helix-editor.com/master/guides/textobject.html + +(subprogram_body) @function.around +(subprogram_body (non_empty_declarative_part) @function.inside) +(subprogram_body (handled_sequence_of_statements) @function.inside) +(function_specification) @function.around +(procedure_specification) @function.around +(package_declaration) @function.around +(generic_package_declaration) @function.around +(package_body) @function.around |