on master help sign in
Add tree-sitter textobjects queries for bash (#7764)
7af37bbPetr Gajdůšek
book/src/generated/lang-support.md+1−1
@@ -2,7 +2,7 @@
2| --- | --- | --- | --- | --- |
2| --- | --- | --- | --- | --- |
3| astro | ✓ | | | |
3| astro | ✓ | | | |
4| awk | ✓ | ✓ | | `awk-language-server` |
4| awk | ✓ | ✓ | | `awk-language-server` |
5−| bash | ✓ | | ✓ | `bash-language-server` |
5+| bash | ✓ | ✓ | ✓ | `bash-language-server` |
6| bass | ✓ | | | `bass` |
6| bass | ✓ | | | `bass` |
7| beancount | ✓ | | | |
7| beancount | ✓ | | | |
8| bibtex | ✓ | | | `texlab` |
8| 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