| 1 |
|
| 2 |
|
| 3 |
[ |
| 4 |
(chunk) |
| 5 |
(function_declaration) |
| 6 |
(function_definition) |
| 7 |
(do_statement) |
| 8 |
(while_statement) |
| 9 |
(repeat_statement) |
| 10 |
(if_statement) |
| 11 |
(for_statement) |
| 12 |
] @local.scope |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
(parameters |
| 17 |
(identifier) @local.definition.variable.parameter) |
| 18 |
|
| 19 |
|
| 20 |
(parameters |
| 21 |
(identifier) @local.definition.variable.builtin |
| 22 |
(#eq? @local.definition.variable.builtin "self")) |
| 23 |
|
| 24 |
(for_numeric_clause |
| 25 |
name: (identifier) @local.definition.variable) |
| 26 |
|
| 27 |
(for_generic_clause |
| 28 |
(variable_list |
| 29 |
(variable |
| 30 |
(identifier) @local.definition.variable))) |
| 31 |
|
| 32 |
|
| 33 |
(variable_declaration |
| 34 |
(assignment_statement |
| 35 |
(variable_list |
| 36 |
(variable |
| 37 |
(identifier) @local.definition.variable)))) |
| 38 |
(variable_declaration |
| 39 |
(variable_list |
| 40 |
(variable |
| 41 |
(identifier) @local.definition.variable))) |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
(identifier) @local.reference |
| 46 |
|
| 47 |
|
| 48 |
(dot_index_expression |
| 49 |
field: (identifier) @_) |
| 50 |
(method_index_expression |
| 51 |
method: (identifier) @_) |
| 52 |
(field |
| 53 |
name: (identifier) @_) |