2023-06-12 10:15:41 +02:00
|
|
|
; References
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.reference
|
2023-06-12 10:15:41 +02:00
|
|
|
|
|
|
|
|
; Definitions
|
|
|
|
|
(function_definition
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.function
|
2023-06-12 10:15:41 +02:00
|
|
|
(function_arguments
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier)* @local.definition.parameter
|
2024-01-06 15:05:50 +09:00
|
|
|
(","
|
|
|
|
|
(identifier) @local.definition.parameter)*)?) @local.scope
|
|
|
|
|
|
|
|
|
|
(assignment
|
|
|
|
|
left: (identifier) @local.definition.var)
|
|
|
|
|
|
|
|
|
|
(multioutput_variable
|
|
|
|
|
(identifier) @local.definition.var)
|
|
|
|
|
|
|
|
|
|
(iterator
|
|
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.var)
|
|
|
|
|
|
|
|
|
|
(lambda
|
|
|
|
|
(arguments
|
|
|
|
|
(identifier) @local.definition.parameter))
|
|
|
|
|
|
|
|
|
|
(global_operator
|
|
|
|
|
(identifier) @local.definition.var)
|
2023-06-12 10:15:41 +02:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(persistent_operator
|
|
|
|
|
(identifier) @local.definition.var)
|
2023-06-12 10:15:41 +02:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(catch_clause
|
|
|
|
|
(identifier) @local.definition)
|