helix-mods/runtime/queries/vala/textobjects.scm
2024-03-18 00:11:28 +01:00

27 lines
681 B
Scheme

(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