on 4229583 help sign in
helix/runtime/queries/python/textobjects.scm
23 lines 579 B history raw
1(function_definition
2 body: (block)? @function.inside) @function.around
4(class_definition
5 body: (block)? @class.inside) @class.around
7(parameters
8 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
9
10(lambda_parameters
11 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
13(argument_list
14 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
16(comment) @comment.inside
18(comment)+ @comment.around
20((function_definition
21 name: (identifier) @_name
22 body: (block)? @test.inside) @test.around
23 (#match? @_name "^test_"))