| 1 | (function_declaration |
| 2 | body: (_) @function.inside) @function.around |
| 3 | |
| 4 | (function_expression |
| 5 | body: (_) @function.inside) @function.around |
| 6 | |
| 7 | (arrow_function |
| 8 | body: (_) @function.inside) @function.around |
| 9 | |
| 10 | (method_definition |
| 11 | body: (_) @function.inside) @function.around |
| 12 | |
| 13 | (generator_function_declaration |
| 14 | body: (_) @function.inside) @function.around |
| 15 | |
| 16 | (class_declaration |
| 17 | body: (class_body) @class.inside) @class.around |
| 18 | |
| 19 | (class |
| 20 | (class_body) @class.inside) @class.around |
| 21 | |
| 22 | (export_statement |
| 23 | declaration: [ |
| 24 | (function_declaration) @function.around |
| 25 | (class_declaration) @class.around |
| 26 | ]) |
| 27 | |
| 28 | (formal_parameters |
| 29 | ((_) @parameter.inside . ","? @parameter.around) @parameter.around) |
| 30 | |
| 31 | (arguments |
| 32 | ((_) @parameter.inside . ","? @parameter.around) @parameter.around) |
| 33 | |
| 34 | (comment) @comment.inside |
| 35 | |
| 36 | (comment)+ @comment.around |
| 37 | |
| 38 | (array |
| 39 | (_) @entry.around) |
| 40 | |
| 41 | (pair |
| 42 | (_) @entry.inside) @entry.around |
| 43 | |
| 44 | (pair_pattern |
| 45 | (_) @entry.inside) @entry.around |