2024-12-05 04:59:11 +08:00
|
|
|
|
|
|
|
(var_declaration
|
|
|
|
declarators: (var_declarators
|
2025-02-25 01:46:34 +08:00
|
|
|
(var (identifier)) @local.definition.variable))
|
2024-12-05 04:59:11 +08:00
|
|
|
|
|
|
|
(var_assignment
|
|
|
|
variables: (assignment_variables
|
2025-02-25 01:46:34 +08:00
|
|
|
(var (identifier) @local.definition.variable)))
|
2024-12-05 04:59:11 +08:00
|
|
|
|
2025-02-25 01:46:34 +08:00
|
|
|
(arg name: (identifier) @local.definition.variable.parameter)
|
2024-12-05 04:59:11 +08:00
|
|
|
|
|
|
|
(anon_function) @local.scope
|
|
|
|
((function_statement
|
2025-02-25 01:46:34 +08:00
|
|
|
(function_name) @local.definition.function) @local.scope)
|
2024-12-05 04:59:11 +08:00
|
|
|
|
|
|
|
(program) @local.scope
|
|
|
|
(if_statement) @local.scope
|
|
|
|
(generic_for_statement (for_body) @local.scope)
|
|
|
|
(numeric_for_statement (for_body) @local.scope)
|
|
|
|
(repeat_statement) @local.scope
|
|
|
|
(while_statement (while_body) @local.scope)
|
|
|
|
(do_statement) @local.scope
|
|
|
|
|
|
|
|
(identifier) @local.reference
|
|
|
|
|