From 81d444c498c94a5f159dfa5e9e2c8017583a8beb Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Sat, 1 Aug 2020 23:52:20 -0500 Subject: [PATCH] RST: update queries --- queries/rst/highlights.scm | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/queries/rst/highlights.scm b/queries/rst/highlights.scm index 3f7254719..3f719d9f3 100644 --- a/queries/rst/highlights.scm +++ b/queries/rst/highlights.scm @@ -5,6 +5,7 @@ "|" "--" "__" + ":" "::" "bullet" "adornment" @@ -32,10 +33,12 @@ [ (literal_block) (line_block) - (block_quote) (doctest_block) ] @text.literal +(block_quote + (attribution)? @text.emphasis) @text.literal + (substitution_definition name: (substitution) @constant) @@ -49,6 +52,16 @@ name: (reference)? @constant link: (_) @text.literal) +;; Lists + +; Definition lists +(list_item + (term) @text.strong + (classifier)? @text.emphasis) + +; Field lists +(field (field_name) @constant) + ;; Inline markup (emphasis) @text.emphasis @@ -110,8 +123,6 @@ (title) @text.title -(attribution) @text.emphasis - (comment) @comment (comment "..") @comment