aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
authorPetr Gajdůšek2023-08-07 18:27:35 +0000
committerGitHub2023-08-07 18:27:35 +0000
commit7af37bb3b96104b82e56d0072ca0d9a7b226c141 (patch)
tree36c7266972c5e7edc5130acd498ddc3f74bf137c /runtime/queries
parentd6c799fb3026425d1eb0cd71130e2b17d315829f (diff)
Add tree-sitter textobjects queries for bash (#7764)
This implements function, (calling) argument and comment captures for use in the textobject selections in bash. This also updates the generated docs after adding the textobjects for bash.
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/bash/textobjects.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/queries/bash/textobjects.scm b/runtime/queries/bash/textobjects.scm
new file mode 100644
index 00000000..59983b30
--- /dev/null
+++ b/runtime/queries/bash/textobjects.scm
@@ -0,0 +1,9 @@
+(function_definition
+ body: (_) @function.inside) @function.around
+
+(command
+ argument: (_) @parameter.inside)
+
+(comment) @comment.inside
+
+(comment)+ @comment.around