on 0b8a00a help sign in
helix/runtime/queries/rust/textobjects.scm
79 lines 1.3 kB history raw
1(
2 [
3 (attribute_item)+
4 (line_comment)+
5 ]*
6 .
7 (function_item
8 body: (_) @function.inside)) @function.around
10(closure_expression body: (_) @function.inside) @function.around
13 [
14 (attribute_item)+
15 (line_comment)+
16 ]*
17 .
18 (struct_item
19 body: (_) @class.inside)) @class.around
22 [
23 (attribute_item)+
24 (line_comment)+
25 ]*
26 .
27 (enum_item
28 body: (_) @class.inside)) @class.around
31 [
32 (attribute_item)+
33 (line_comment)+
34 ]*
35 .
36 (union_item
37 body: (_) @class.inside)) @class.around
40 [
41 (attribute_item)+
42 (line_comment)+
43 ]*
44 .
45 (trait_item
46 body: (_) @class.inside)) @class.around
49 [
50 (attribute_item)+
51 (line_comment)+
52 ]*
53 .
54 (impl_item
55 body: (_) @class.inside)) @class.around
57(parameters
58 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
60(type_parameters
61 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
63(type_arguments
64 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
66(closure_parameters
67 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
69(arguments
70 ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
73 (line_comment)
74 (block_comment)
75] @comment.inside
77(line_comment)+ @comment.around
79(block_comment) @comment.around