mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-25 01:50:04 +08:00
36 lines
705 B
Scheme
36 lines
705 B
Scheme
|
(block) @scope
|
||
|
|
||
|
; Parameter definitions
|
||
|
(parameter_declaration
|
||
|
command: (identifier)
|
||
|
macro: (macro) @definition.parameter)
|
||
|
|
||
|
; Variable definitions
|
||
|
(macro_definition
|
||
|
command: (identifier)
|
||
|
macro: (macro) @definition.var)
|
||
|
|
||
|
(command_expression
|
||
|
command: (identifier)
|
||
|
arguments: (argument_list
|
||
|
variable: (identifier) @definition.var))
|
||
|
|
||
|
; Function definitions
|
||
|
(subroutine_block
|
||
|
command: (identifier)
|
||
|
subroutine: (identifier) @definition.function)
|
||
|
|
||
|
(labeled_expression
|
||
|
label: (identifier) @definition.function
|
||
|
(block))
|
||
|
|
||
|
; References
|
||
|
(
|
||
|
(subroutine_call_expression
|
||
|
command: (identifier)
|
||
|
subroutine: (identifier) @reference)
|
||
|
(set! reference.kind "function")
|
||
|
)
|
||
|
|
||
|
(macro) @reference
|