mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
40 lines
634 B
Scheme
40 lines
634 B
Scheme
;; Scopes
|
|
|
|
(document) @local.scope
|
|
|
|
(directive) @local.scope
|
|
|
|
;; Definitions
|
|
|
|
(title) @local.definition
|
|
|
|
(substitution_definition
|
|
name: (substitution) @local.definition)
|
|
|
|
(footnote
|
|
name: (label) @local.definition)
|
|
|
|
(citation
|
|
name: (label) @local.definition)
|
|
|
|
(target
|
|
name: (name) @local.definition)
|
|
|
|
; Inline targets
|
|
(inline_target) @local.definition
|
|
|
|
; The role directive can define a new role
|
|
((directive
|
|
name: (type) @_type
|
|
body: (body (arguments) @local.definition))
|
|
(#eq? @_type "role"))
|
|
|
|
;; References
|
|
|
|
[
|
|
(substitution_reference)
|
|
(footnote_reference)
|
|
(citation_reference)
|
|
(reference)
|
|
(role)
|
|
] @local.reference
|