helix/runtime/queries/rust/locals.scm
2025-03-27 10:50:04 -04:00

23 lines
371 B
Scheme

; Scopes
[
(function_item)
(struct_item)
(enum_item)
(union_item)
(type_item)
(trait_item)
(impl_item)
(closure_expression)
(block)
] @local.scope
; Definitions
(parameter
pattern: (identifier) @local.definition.variable.parameter)
(closure_parameters (identifier) @local.definition.variable.parameter)
; References
(identifier) @local.reference