mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
24 lines
429 B
Scheme
24 lines
429 B
Scheme
[
|
|
(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)
|
|
(lambda name: (symbol) @definition.function)
|
|
|
|
; TODO: use @definition.parameter for parameters
|
|
(binding (symbol) @definition.var)
|
|
(for_clause . (symbol) @definition.var)
|
|
|
|
(symbol) @reference
|