summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2020-07-28 23:42:48 -0500
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-07-29 10:04:46 +0200
commitb1da6ad8b37da25093c76e3cf1c115fe6698ddb4 (patch)
treea0552599885c7888d720079f16f2173f62bd9aec
parentbd1d1adb357aae4ccb3038efd5365cd53de0e805 (diff)
rst: update highlight queries
-rw-r--r--queries/rst/highlights.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/queries/rst/highlights.scm b/queries/rst/highlights.scm
index 477ede2c..fa89bce1 100644
--- a/queries/rst/highlights.scm
+++ b/queries/rst/highlights.scm
@@ -50,6 +50,14 @@
(standalone_hyperlink) @text.uri
+(role) @function
+
+((role) @function.builtin
+ (#match?
+ @function.builtin
+ ; https://docutils.sourceforge.io/docs/ref/rst/roles.html
+ "^:(emphasis|literal|code|math|pep-reference|rfc-reference|strong|subscript|superscript|title-reference|raw):$"))
+
[
(interpreted_text)
(literal)