mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:20:05 +08:00
16 lines
564 B
Scheme
16 lines
564 B
Scheme
; let bindings
|
|
(let_expression (binding_set (binding . (attrpath) @definition.var))) @scope
|
|
|
|
; rec attrsets
|
|
(rec_attrset_expression (binding_set (binding . (attrpath) @definition.field))) @scope
|
|
|
|
; functions and parameters
|
|
(function_expression . [
|
|
(identifier) @definition.parameter
|
|
(formals (formal . (identifier) @definition.parameter))
|
|
]) @scope
|
|
((formals) "@" (identifier) @definition.parameter) ; I couldn't get this to work properly inside the (function)
|
|
|
|
(variable_expression (identifier) @reference)
|
|
(inherited_attrs attr: (identifier) @reference)
|