| 1 |
|
| 2 |
(class |
| 3 |
body: (_)? @class.inside) @class.around |
| 4 |
|
| 5 |
(singleton_class |
| 6 |
value: (_) |
| 7 |
(_)+ @class.inside) @class.around |
| 8 |
|
| 9 |
(call |
| 10 |
receiver: (constant) @class_const |
| 11 |
method: (identifier) @class_method |
| 12 |
(#match? @class_const "Class") |
| 13 |
(#match? @class_method "new") |
| 14 |
(do_block (_)+ @class.inside)) @class.around |
| 15 |
|
| 16 |
(module |
| 17 |
body: (_)? @class.inside) @class.around |
| 18 |
|
| 19 |
|
| 20 |
(singleton_method |
| 21 |
body: (_)? @function.inside) @function.around |
| 22 |
|
| 23 |
(method |
| 24 |
body: (_)? @function.inside) @function.around |
| 25 |
|
| 26 |
(do_block |
| 27 |
body: (_)? @function.inside) @function.around |
| 28 |
|
| 29 |
(block |
| 30 |
body: (_)? @function.inside) @function.around |
| 31 |
|
| 32 |
|
| 33 |
(method_parameters |
| 34 |
(_) @parameter.inside) @parameter.around |
| 35 |
|
| 36 |
(block_parameters |
| 37 |
(_) @parameter.inside) @parameter.around |
| 38 |
|
| 39 |
(lambda_parameters |
| 40 |
(_) @parameter.inside) @parameter.around |
| 41 |
|
| 42 |
|
| 43 |
(comment) @comment.inside |
| 44 |
(comment)+ @comment.around |
| 45 |
|
| 46 |
(pair |
| 47 |
(_) @entry.inside) @entry.around |
| 48 |
|
| 49 |
(array |
| 50 |
(_) @entry.around) |
| 51 |
|
| 52 |
(string_array |
| 53 |
(_) @entry.around) |
| 54 |
|
| 55 |
(symbol_array |
| 56 |
(_) @entry.around) |