mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:40:05 +08:00
31 lines
687 B
Scheme
Vendored
31 lines
687 B
Scheme
Vendored
; SCOPES
|
|
(module) @scope
|
|
(dataclass) @scope
|
|
(datatype) @scope
|
|
;; TODO does not work
|
|
;(classMember (body) @scope)
|
|
(memberPredicate (body) @scope)
|
|
(classlessPredicate (body) @scope)
|
|
(quantified (conjunction) @scope)
|
|
(select) @scope
|
|
|
|
; DEFINITIONS
|
|
|
|
; module
|
|
(module name: (moduleName) @definition.namespace)
|
|
|
|
; classes
|
|
(dataclass name: (className) @definition.type)
|
|
(datatype name: (className) @definition.type)
|
|
|
|
; predicates
|
|
(charpred (className) @definition.method)
|
|
(memberPredicate name: (predicateName) @definition.method)
|
|
(classlessPredicate name: (predicateName) @definition.function)
|
|
|
|
; variables
|
|
(varDecl (varName (simpleId) @definition.var))
|
|
|
|
; REFERENCES
|
|
(simpleId) @reference
|