mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -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)
|
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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue