mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
RST: update queries
Some nodes were renamed and added more textobjects.
This commit is contained in:
parent
79fd22cc5a
commit
5c85e6beee
3 changed files with 30 additions and 4 deletions
|
|
@ -49,7 +49,7 @@
|
|||
name: (label) @constant)
|
||||
|
||||
(target
|
||||
name: (reference)? @constant
|
||||
name: (name)? @constant
|
||||
link: (_) @text.literal)
|
||||
|
||||
;; Lists
|
||||
|
|
@ -106,7 +106,7 @@
|
|||
] @text.literal
|
||||
|
||||
[
|
||||
(target)
|
||||
(inline_target)
|
||||
(substitution_reference)
|
||||
(footnote_reference)
|
||||
(citation_reference)
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@
|
|||
name: (label) @definition)
|
||||
|
||||
(target
|
||||
name: (reference) @definition)
|
||||
name: (name) @definition)
|
||||
|
||||
; Inline targets
|
||||
(target) @definition
|
||||
(inline_target) @definition
|
||||
|
||||
; The role directive can define a new role
|
||||
((directive
|
||||
|
|
|
|||
|
|
@ -4,3 +4,29 @@
|
|||
(section (title) @class.inner) @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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue