| 1 | |
| 2 | (var_declaration |
| 3 | declarators: (var_declarators |
| 4 | (var (identifier)) @local.definition.variable)) |
| 5 | |
| 6 | (var_assignment |
| 7 | variables: (assignment_variables |
| 8 | (var (identifier) @local.definition.variable))) |
| 9 | |
| 10 | (arg name: (identifier) @local.definition.variable.parameter) |
| 11 | |
| 12 | (anon_function) @local.scope |
| 13 | ((function_statement |
| 14 | (function_name) @local.definition.function) @local.scope) |
| 15 | |
| 16 | (program) @local.scope |
| 17 | (if_statement) @local.scope |
| 18 | (generic_for_statement (for_body) @local.scope) |
| 19 | (numeric_for_statement (for_body) @local.scope) |
| 20 | (repeat_statement) @local.scope |
| 21 | (while_statement (while_body) @local.scope) |
| 22 | (do_statement) @local.scope |
| 23 | |
| 24 | (identifier) @local.reference |
| 25 |