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

28 lines
542 B
Scheme

; Scopes
[
(function_item)
(struct_item)
(enum_item)
(type_item)
(trait_item)
(impl_item)
(closure_expression)
(block)
] @local.scope
; Definitions
(parameter
(identifier) @local.definition.variable.parameter)
(type_parameters
(type_identifier) @local.definition.type.parameter)
(constrained_type_parameter
left: (type_identifier) @local.definition.type.parameter)
(closure_parameters (identifier) @local.definition.variable.parameter)
; References
(identifier) @local.reference
(type_identifier) @local.reference