| 1 |
( |
| 2 |
(attribute_item)* @function.around |
| 3 |
. |
| 4 |
(function_item |
| 5 |
body: (_) @function.inside) @function.around |
| 6 |
) |
| 7 |
|
| 8 |
(closure_expression |
| 9 |
body: (_) @function.inside) @function.around |
| 10 |
|
| 11 |
(struct_item |
| 12 |
body: (_) @class.inside) @class.around |
| 13 |
|
| 14 |
(enum_item |
| 15 |
body: (_) @class.inside) @class.around |
| 16 |
|
| 17 |
(union_item |
| 18 |
body: (_) @class.inside) @class.around |
| 19 |
|
| 20 |
(trait_item |
| 21 |
body: (_) @class.inside) @class.around |
| 22 |
|
| 23 |
(impl_item |
| 24 |
body: (_) @class.inside) @class.around |
| 25 |
|
| 26 |
(parameters |
| 27 |
((_) @parameter.inside . ","? @parameter.around) @parameter.around) |
| 28 |
|
| 29 |
(type_parameters |
| 30 |
((_) @parameter.inside . ","? @parameter.around) @parameter.around) |
| 31 |
|
| 32 |
(type_arguments |
| 33 |
((_) @parameter.inside . ","? @parameter.around) @parameter.around) |
| 34 |
|
| 35 |
(closure_parameters |
| 36 |
((_) @parameter.inside . ","? @parameter.around) @parameter.around) |
| 37 |
|
| 38 |
(arguments |
| 39 |
((_) @parameter.inside . ","? @parameter.around) @parameter.around) |
| 40 |
|
| 41 |
(field_initializer_list |
| 42 |
((_) @parameter.inside . ","? @parameter.around) @parameter.around) |
| 43 |
|
| 44 |
[ |
| 45 |
(line_comment) |
| 46 |
(block_comment) |
| 47 |
] @comment.inside |
| 48 |
|
| 49 |
(line_comment)+ @comment.around |
| 50 |
|
| 51 |
(block_comment) @comment.around |
| 52 |
|
| 53 |
( |
| 54 |
(attribute_item |
| 55 |
(attribute |
| 56 |
(identifier) @_test_attribute)) @test.around |
| 57 |
|
| 58 |
[ |
| 59 |
(attribute_item) @test.around |
| 60 |
(line_comment) @test.around |
| 61 |
]* |
| 62 |
. |
| 63 |
|
| 64 |
(function_item |
| 65 |
body: (_) @test.inside) @test.around |
| 66 |
(#eq? @_test_attribute "test")) |
| 67 |
|
| 68 |
(array_expression |
| 69 |
(_) @entry.around) |
| 70 |
|
| 71 |
(tuple_expression |
| 72 |
(_) @entry.around) |
| 73 |
|
| 74 |
(tuple_pattern |
| 75 |
(_) @entry.around) |
| 76 |
|
| 77 |
|
| 78 |
(macro_invocation |
| 79 |
(identifier) @_id (token_tree (_) @entry.around) |
| 80 |
(#eq? @_id "vec")) |
| 81 |
|
| 82 |
(enum_variant) @entry.around |
| 83 |
|
| 84 |
(field_declaration |
| 85 |
(_) @entry.inside) @entry.around |
| 86 |
|
| 87 |
(field_initializer |
| 88 |
(_) @entry.inside) @entry.around |
| 89 |
|
| 90 |
(shorthand_field_initializer) @entry.around |