blob: ce4235b43bdf7b7ce005327d43b215e6a9a5f86a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
; 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
|