RST: update queries

This commit is contained in:
Santos Gallegos 2020-08-01 23:52:20 -05:00 committed by Thomas Vigouroux
parent 3c7528a294
commit 81d444c498

View file

@ -5,6 +5,7 @@
"|" "|"
"--" "--"
"__" "__"
":"
"::" "::"
"bullet" "bullet"
"adornment" "adornment"
@ -32,10 +33,12 @@
[ [
(literal_block) (literal_block)
(line_block) (line_block)
(block_quote)
(doctest_block) (doctest_block)
] @text.literal ] @text.literal
(block_quote
(attribution)? @text.emphasis) @text.literal
(substitution_definition (substitution_definition
name: (substitution) @constant) name: (substitution) @constant)
@ -49,6 +52,16 @@
name: (reference)? @constant name: (reference)? @constant
link: (_) @text.literal) link: (_) @text.literal)
;; Lists
; Definition lists
(list_item
(term) @text.strong
(classifier)? @text.emphasis)
; Field lists
(field (field_name) @constant)
;; Inline markup ;; Inline markup
(emphasis) @text.emphasis (emphasis) @text.emphasis
@ -110,8 +123,6 @@
(title) @text.title (title) @text.title
(attribution) @text.emphasis
(comment) @comment (comment) @comment
(comment "..") @comment (comment "..") @comment