Add textobject queries for vala (#8541)

This commit is contained in:
Joey Hain 2024-03-17 16:11:28 -07:00 committed by GitHub
parent d99b6177c2
commit 476e6baf8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 28 additions and 1 deletions

View file

@ -190,7 +190,7 @@
| unison | ✓ | | ✓ | |
| uxntal | ✓ | | | |
| v | ✓ | ✓ | ✓ | `v-analyzer` |
| vala | ✓ | | | `vala-language-server` |
| vala | ✓ | | | `vala-language-server` |
| verilog | ✓ | ✓ | | `svlangserver` |
| vhdl | ✓ | | | `vhdl_ls` |
| vhs | ✓ | | | |

View file

@ -0,0 +1,27 @@
(method_declaration
(block) @function.inside) @function.around
(creation_method_declaration
(block) @function.inside) @function.around
(method_declaration
((parameter) @parameter.inside . ","? @parameter.around) @parameter.around)
[
(class_declaration)
(struct_declaration)
(interface_declaration)
] @class.around
(type_arguments
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(creation_method_declaration
((parameter) @parameter.inside . ","? @parameter.around) @parameter.around)
(method_call_expression
((argument) @parameter.inside . ","? @parameter.around) @parameter.around)
(comment) @comment.inside
(comment)+ @comment.around