mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-09-11 16:07:00 +03:00
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.
This commit is contained in:
parent
d6c799fb30
commit
7af37bb3b9
@ -2,7 +2,7 @@
|
||||
| --- | --- | --- | --- | --- |
|
||||
| astro | ✓ | | | |
|
||||
| awk | ✓ | ✓ | | `awk-language-server` |
|
||||
| bash | ✓ | | ✓ | `bash-language-server` |
|
||||
| bash | ✓ | ✓ | ✓ | `bash-language-server` |
|
||||
| bass | ✓ | | | `bass` |
|
||||
| beancount | ✓ | | | |
|
||||
| bibtex | ✓ | | | `texlab` |
|
||||
|
9
runtime/queries/bash/textobjects.scm
Normal file
9
runtime/queries/bash/textobjects.scm
Normal file
@ -0,0 +1,9 @@
|
||||
(function_definition
|
||||
body: (_) @function.inside) @function.around
|
||||
|
||||
(command
|
||||
argument: (_) @parameter.inside)
|
||||
|
||||
(comment) @comment.inside
|
||||
|
||||
(comment)+ @comment.around
|
Loading…
Reference in New Issue
Block a user