2024-06-12 08:20:13 +08:00
|
|
|
; Scopes
|
|
|
|
|
|
|
|
[
|
|
|
|
(function_item)
|
|
|
|
(struct_item)
|
|
|
|
(enum_item)
|
|
|
|
(type_item)
|
|
|
|
(trait_item)
|
|
|
|
(impl_item)
|
2025-01-28 22:19:33 +08:00
|
|
|
(closure_expression)
|
2024-06-12 08:20:13 +08:00
|
|
|
(block)
|
|
|
|
] @local.scope
|
|
|
|
|
|
|
|
; Definitions
|
|
|
|
|
|
|
|
(parameter
|
|
|
|
(identifier) @local.definition)
|
|
|
|
|
|
|
|
(type_parameters
|
|
|
|
(type_identifier) @local.definition)
|
|
|
|
(constrained_type_parameter
|
|
|
|
left: (type_identifier) @local.definition)
|
|
|
|
|
2025-01-28 22:19:33 +08:00
|
|
|
(closure_parameters (identifier) @local.definition)
|
|
|
|
|
2024-06-12 08:20:13 +08:00
|
|
|
; References
|
|
|
|
(identifier) @local.reference
|
|
|
|
(type_identifier) @local.reference
|