summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2020-08-01 11:56:15 -0500
committerStephan Seitz <stephan.lauf@yahoo.de>2020-08-01 19:18:54 +0200
commit5c5f4c5d548397fbba2ba6dfecd8267bde12deab (patch)
tree1a7c7a89082cf65cbf03a334e3970bc53f5b2b9f
parent8cacd5aaac0aa13a3ba29e15ea822ac80711abf6 (diff)
RST: update locals
-rw-r--r--queries/rst/locals.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/queries/rst/locals.scm b/queries/rst/locals.scm
index 4838935b..d61de4af 100644
--- a/queries/rst/locals.scm
+++ b/queries/rst/locals.scm
@@ -21,6 +21,12 @@
; Inline targets
(target) @definition
+; The role directive can define a new role
+((directive
+ name: (type) @_type
+ body: (body) @definition)
+ (#match? @_type "role::"))
+
;; References
[
@@ -28,4 +34,5 @@
(footnote_reference)
(citation_reference)
(reference)
+ (role)
] @reference