mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:30:03 +08:00
27 lines
519 B
Scheme
Vendored
27 lines
519 B
Scheme
Vendored
[
|
|
(program)
|
|
(fn)
|
|
(lambda)
|
|
(let)
|
|
(each)
|
|
(for)
|
|
(match)
|
|
] @scope
|
|
|
|
(
|
|
(list . (symbol) @_special) @scope
|
|
(#any-of? @_special
|
|
"while" "if" "when" "do" "collect" "icollect" "accumulate")
|
|
)
|
|
|
|
(fn name: (symbol) @definition.function
|
|
(#set! definition.function.scope "parent"))
|
|
(lambda name: (symbol) @definition.function
|
|
(#set! definition.function.scope "parent"))
|
|
|
|
; TODO: use @definition.parameter for parameters
|
|
(binding (symbol) @definition.var)
|
|
(for_clause . (symbol) @definition.var)
|
|
|
|
(symbol) @reference
|