on bbcdcd0 help sign in
helix/runtime/queries/v/textobjects.scm
27 lines 650 B history raw
1(function_declaration
2 body: (block)? @function.inside) @function.around
4((function_declaration
5 name: (identifier) @_name
6 body: (block)? @test.inside) @test.around
7 (#match? @_name "^test"))
9(fn_literal
10 body: (block)? @function.inside) @function.around
12(parameter_list
13 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
15(call_expression
16 (argument_list
17 ((_) @parameter.inside) @parameter.around))
19(struct_declaration
20 (struct_field_declaration_list) @class.inside) @class.around
22(struct_field_declaration_list
23 ((_) @parameter.inside) @parameter.around)
25(comment) @comment.inside
26(comment)+ @comment.around