2020-07-26 09:38:53 -05:00
|
|
|
;; Scopes
|
|
|
|
|
|
|
|
|
|
(document) @scope
|
|
|
|
|
|
|
|
|
|
(directive) @scope
|
|
|
|
|
|
|
|
|
|
;; Definitions
|
|
|
|
|
|
2020-09-15 13:45:13 -05:00
|
|
|
(title) @definition
|
|
|
|
|
|
2020-07-26 09:38:53 -05:00
|
|
|
(substitution_definition
|
|
|
|
|
name: (substitution) @definition)
|
|
|
|
|
|
|
|
|
|
(footnote
|
|
|
|
|
name: (label) @definition)
|
|
|
|
|
|
|
|
|
|
(citation
|
|
|
|
|
name: (label) @definition)
|
|
|
|
|
|
|
|
|
|
(target
|
2020-09-18 11:12:27 -05:00
|
|
|
name: (name) @definition)
|
2020-07-26 09:38:53 -05:00
|
|
|
|
|
|
|
|
; Inline targets
|
2020-09-18 11:12:27 -05:00
|
|
|
(inline_target) @definition
|
2020-07-26 09:38:53 -05:00
|
|
|
|
2020-08-01 11:56:15 -05:00
|
|
|
; The role directive can define a new role
|
|
|
|
|
((directive
|
|
|
|
|
name: (type) @_type
|
2021-01-02 16:56:05 -05:00
|
|
|
body: (body (arguments) @definition))
|
2020-12-31 14:28:26 -05:00
|
|
|
(#eq? @_type "role"))
|
2020-08-01 11:56:15 -05:00
|
|
|
|
2020-07-26 09:38:53 -05:00
|
|
|
;; References
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
(substitution_reference)
|
|
|
|
|
(footnote_reference)
|
|
|
|
|
(citation_reference)
|
|
|
|
|
(reference)
|
2020-08-01 11:56:15 -05:00
|
|
|
(role)
|
2020-07-26 09:38:53 -05:00
|
|
|
] @reference
|