mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
38 lines
544 B
Scheme
38 lines
544 B
Scheme
;; Scopes
|
|
|
|
(document) @scope
|
|
|
|
(directive) @scope
|
|
|
|
;; Definitions
|
|
|
|
(substitution_definition
|
|
name: (substitution) @definition)
|
|
|
|
(footnote
|
|
name: (label) @definition)
|
|
|
|
(citation
|
|
name: (label) @definition)
|
|
|
|
(target
|
|
name: (reference) @definition)
|
|
|
|
; Inline targets
|
|
(target) @definition
|
|
|
|
; The role directive can define a new role
|
|
((directive
|
|
name: (type) @_type
|
|
body: (body) @definition)
|
|
(#match? @_type "role::"))
|
|
|
|
;; References
|
|
|
|
[
|
|
(substitution_reference)
|
|
(footnote_reference)
|
|
(citation_reference)
|
|
(reference)
|
|
(role)
|
|
] @reference
|