mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
26 lines
567 B
Scheme
26 lines
567 B
Scheme
[
|
|
(program)
|
|
(fn)
|
|
(lambda)
|
|
(let)
|
|
(each)
|
|
(for)
|
|
(match)
|
|
] @local.scope
|
|
|
|
(
|
|
(list . (symbol) @_special) @local.scope
|
|
(#any-of? @_special
|
|
"while" "if" "when" "do" "collect" "icollect" "accumulate")
|
|
)
|
|
|
|
(fn name: (symbol) @local.definition.function
|
|
(#set! definition.function.scope "parent"))
|
|
(lambda name: (symbol) @local.definition.function
|
|
(#set! definition.function.scope "parent"))
|
|
|
|
; TODO: use @local.definition.parameter for parameters
|
|
(binding (symbol) @local.definition.var)
|
|
(for_clause . (symbol) @local.definition.var)
|
|
|
|
(symbol) @local.reference
|