RST: update queries

Some nodes were renamed and added more textobjects.
This commit is contained in:
Santos Gallegos 2020-09-18 11:12:27 -05:00 committed by Thomas Vigouroux
parent 79fd22cc5a
commit 5c85e6beee
3 changed files with 30 additions and 4 deletions

View file

@ -49,7 +49,7 @@
name: (label) @constant) name: (label) @constant)
(target (target
name: (reference)? @constant name: (name)? @constant
link: (_) @text.literal) link: (_) @text.literal)
;; Lists ;; Lists
@ -106,7 +106,7 @@
] @text.literal ] @text.literal
[ [
(target) (inline_target)
(substitution_reference) (substitution_reference)
(footnote_reference) (footnote_reference)
(citation_reference) (citation_reference)

View file

@ -18,10 +18,10 @@
name: (label) @definition) name: (label) @definition)
(target (target
name: (reference) @definition) name: (name) @definition)
; Inline targets ; Inline targets
(target) @definition (inline_target) @definition
; The role directive can define a new role ; The role directive can define a new role
((directive ((directive

View file

@ -4,3 +4,29 @@
(section (title) @class.inner) @class.outer (section (title) @class.inner) @class.outer
(transition) @class.outer (transition) @class.outer
[
(bullet_list)
(enumerated_list)
(definition_list)
(field_list)
(literal_block)
(line_block)
(block_quote)
(doctest_block)
] @block.outer
(footnote
body: (body) @block.inner) @block.outer
(citation
body: (body) @block.inner) @block.outer
(target
link: (link) @block.inner) @block.outer
(substitution_definition
body: (body) @block.inner) @block.outer
(comment) @comment.outer