nvim-treesitter/queries/rst/locals.scm
Santos Gallegos 6aaf240d0c RST: update injection queries
Finally, highlight for code blocks
2021-01-02 17:19:08 -05:00

40 lines
574 B
Scheme

;; Scopes
(document) @scope
(directive) @scope
;; Definitions
(title) @definition
(substitution_definition
name: (substitution) @definition)
(footnote
name: (label) @definition)
(citation
name: (label) @definition)
(target
name: (name) @definition)
; Inline targets
(inline_target) @definition
; The role directive can define a new role
((directive
name: (type) @_type
body: (body (arguments) @definition))
(#eq? @_type "role"))
;; References
[
(substitution_reference)
(footnote_reference)
(citation_reference)
(reference)
(role)
] @reference