diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2020-08-01 23:52:20 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-08-07 10:51:00 +0200 |
| commit | 81d444c498c94a5f159dfa5e9e2c8017583a8beb (patch) | |
| tree | 748a497b03a1a420ef96f2f6e939384e9363b8ce | |
| parent | 3c7528a29458a94dff3730f08356b7505a9bbda1 (diff) | |
RST: update queries
| -rw-r--r-- | queries/rst/highlights.scm | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/queries/rst/highlights.scm b/queries/rst/highlights.scm index 3f725471..3f719d9f 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 |
