| 1 |
(function_declaration |
| 2 |
body: (block)? @function.inside) @function.around |
| 3 |
|
| 4 |
(func_literal |
| 5 |
body: (block)? @function.inside) @function.around |
| 6 |
|
| 7 |
(method_declaration |
| 8 |
body: (block)? @function.inside) @function.around |
| 9 |
|
| 10 |
|
| 11 |
(type_declaration |
| 12 |
(type_spec (type_identifier) (struct_type (field_declaration_list (_)?) @class.inside))) @class.around |
| 13 |
|
| 14 |
(type_declaration |
| 15 |
(type_spec (type_identifier) (interface_type (method_elem)+ @class.inside))) @class.around |
| 16 |
|
| 17 |
(type_parameter_list |
| 18 |
((_) @parameter.inside . ","? @parameter.around) @parameter.around) |
| 19 |
|
| 20 |
(parameter_list |
| 21 |
((_) @parameter.inside . ","? @parameter.around) @parameter.around) |
| 22 |
|
| 23 |
(argument_list |
| 24 |
((_) @parameter.inside . ","? @parameter.around) @parameter.around) |
| 25 |
|
| 26 |
(comment) @comment.inside |
| 27 |
|
| 28 |
(comment)+ @comment.around |
| 29 |
|
| 30 |
|
| 31 |
((function_declaration |
| 32 |
name: (identifier) @_name |
| 33 |
body: (block)? @test.inside) @test.around |
| 34 |
(#match? @_name "^(Test|Benchmark|Example|Fuzz)")) |