on master help sign in
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.

commit7af37bb3b96104b82e56d0072ca0d9a7b226c141 authorPetr Gajdůšek <gajdusek.petr@centrum.cz> dateMon 7 Aug 2023, 20:27 (3 years ago) parentd6c799f
2 files changed+10−1
book/src/generated/lang-support.md+1−1 runtime/queries/bash/textobjects.scm+9
book/src/generated/lang-support.md+1−1
@@ -2,7 +2,7 @@
22| --- | --- | --- | --- | --- |
33| astro | ✓ | | | |
44| awk | ✓ | ✓ | | `awk-language-server` |
5−| bash | ✓ | | ✓ | `bash-language-server` |
5+| bash | ✓ | ✓ | ✓ | `bash-language-server` |
66| bass | ✓ | | | `bass` |
77| beancount | ✓ | | | |
88| bibtex | ✓ | | | `texlab` |
runtime/queries/bash/textobjects.scmnew file+9
@@ -0,0 +1,9 @@
1+(function_definition
2+ body: (_) @function.inside) @function.around
3+
4+(command
5+ argument: (_) @parameter.inside)
6+
7+(comment) @comment.inside
8+
9+(comment)+ @comment.around