summaryrefslogtreecommitdiff
path: root/vendor/queries/ada/textobjects.scm
blob: a6f9c2ff646ded8a4c4098d8cc9fc7dc9d31cac5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
; Vendored from helix (https://github.com/helix-editor/helix) at 278b24389:
; runtime/queries/ada/textobjects.scm.
; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE,
; https://mozilla.org/MPL/2.0/).

;; 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 explanation, 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