2020-10-04 19:39:12 -05:00
|
|
|
(var_declaration
|
2024-03-21 20:44:35 +09:00
|
|
|
declarators: (var_declarators
|
|
|
|
|
(var
|
|
|
|
|
(identifier)) @local.definition.var))
|
2020-10-04 19:39:12 -05:00
|
|
|
|
|
|
|
|
(var_assignment
|
2024-03-21 20:44:35 +09:00
|
|
|
variables: (assignment_variables
|
|
|
|
|
(var
|
|
|
|
|
(identifier) @local.definition.var) @local.definition.associated))
|
2020-10-04 19:39:12 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(arg
|
|
|
|
|
name: (identifier) @local.definition.parameter)
|
2020-10-04 19:39:12 -05:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(anon_function) @local.scope
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2024-01-21 22:05:44 +09:00
|
|
|
(function_statement
|
|
|
|
|
(function_name) @local.definition.function) @local.scope
|
2020-10-04 19:39:12 -05:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(program) @local.scope
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(if_statement) @local.scope
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(generic_for_statement
|
|
|
|
|
(for_body) @local.scope)
|
|
|
|
|
|
|
|
|
|
(numeric_for_statement
|
|
|
|
|
(for_body) @local.scope)
|
|
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(repeat_statement) @local.scope
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(while_statement
|
|
|
|
|
(while_body) @local.scope)
|
|
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(do_statement) @local.scope
|
2020-10-04 19:39:12 -05:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.reference
|