mirror of
https://github.com/helix-editor/helix
synced 2026-08-05 02:33:01 +02:00
27 lines
448 B
Scheme
27 lines
448 B
Scheme
; Scopes
|
|
|
|
[
|
|
(declProc)
|
|
(block)
|
|
] @local.scope
|
|
|
|
; Definitions
|
|
|
|
(declArg
|
|
name: (identifier) @local.definition.variable.parameter)
|
|
|
|
(declVar
|
|
name: (identifier) @local.definition.variable)
|
|
|
|
; References
|
|
|
|
(identifier) @local.reference
|
|
|
|
; The rhs of `a.b` is a member access, not a variable reference.
|
|
(exprDot
|
|
rhs: (identifier) @_)
|
|
|
|
; Procedure/function names in call position are not variable references.
|
|
(exprCall
|
|
entity: (identifier) @_)
|