Add textobject queries for vala (#8541)
This commit is contained in:
parent
d99b6177c2
commit
476e6baf8f
2 changed files with 28 additions and 1 deletions
|
@ -190,7 +190,7 @@
|
|||
| unison | ✓ | | ✓ | |
|
||||
| uxntal | ✓ | | | |
|
||||
| v | ✓ | ✓ | ✓ | `v-analyzer` |
|
||||
| vala | ✓ | | | `vala-language-server` |
|
||||
| vala | ✓ | ✓ | | `vala-language-server` |
|
||||
| verilog | ✓ | ✓ | | `svlangserver` |
|
||||
| vhdl | ✓ | | | `vhdl_ls` |
|
||||
| vhs | ✓ | | | |
|
||||
|
|
27
runtime/queries/vala/textobjects.scm
Normal file
27
runtime/queries/vala/textobjects.scm
Normal 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
|
Loading…
Add table
Reference in a new issue