mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:20:05 +08:00
28 lines
536 B
Scheme
Vendored
28 lines
536 B
Scheme
Vendored
; Scopes
|
|
[
|
|
(function_call)
|
|
(code_block)
|
|
(function_block)
|
|
(control_structure)
|
|
] @scope
|
|
|
|
; Definitions
|
|
(argument
|
|
name: (identifier) @definition.parameter
|
|
(#set! "definition.var.scope" "local")
|
|
)
|
|
|
|
(variable_definition
|
|
name: (variable (local_var (identifier) @definition.var
|
|
)))
|
|
|
|
(variable_definition
|
|
name: (variable (environment_var (identifier) @definition.var))
|
|
(#set! "definition.var.scope" "global"))
|
|
|
|
(function_definition name: (variable) @definition.var
|
|
(#set! "definition.var.scope" "parent")
|
|
)
|
|
|
|
(identifier) @reference
|