helix-mods/runtime/queries/sway/locals.scm

18 lines
236 B
Scheme
Raw Normal View History

2023-02-25 19:47:54 +01:00
; Scopes
[
(function_item)
(closure_expression)
(block)
] @local.scope
; Definitions
(parameter
(identifier) @local.definition)
(closure_parameters (identifier) @local.definition)
; References
(identifier) @local.reference