mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 02:46:17 +04:00
Add textobject queries for vala (#8541)
This commit is contained in:
parent
d99b6177c2
commit
476e6baf8f
@ -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…
Reference in New Issue
Block a user