diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2020-09-18 11:12:27 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-18 21:29:19 +0200 |
| commit | 5c85e6beeee7976a512a02980e999c987f4e8d8e (patch) | |
| tree | a7f2cde26d47e2973cf76c0c8054789b751c78d8 | |
| parent | use TSnone instead of linking to Normal (diff) | |
| download | nvim-treesitter-5c85e6beeee7976a512a02980e999c987f4e8d8e.tar nvim-treesitter-5c85e6beeee7976a512a02980e999c987f4e8d8e.tar.gz nvim-treesitter-5c85e6beeee7976a512a02980e999c987f4e8d8e.tar.bz2 nvim-treesitter-5c85e6beeee7976a512a02980e999c987f4e8d8e.tar.lz nvim-treesitter-5c85e6beeee7976a512a02980e999c987f4e8d8e.tar.xz nvim-treesitter-5c85e6beeee7976a512a02980e999c987f4e8d8e.tar.zst nvim-treesitter-5c85e6beeee7976a512a02980e999c987f4e8d8e.zip | |
RST: update queries
Some nodes were renamed and added more textobjects.
| -rw-r--r-- | queries/rst/highlights.scm | 4 | ||||
| -rw-r--r-- | queries/rst/locals.scm | 4 | ||||
| -rw-r--r-- | queries/rst/textobjects.scm | 26 |
3 files changed, 30 insertions, 4 deletions
diff --git a/queries/rst/highlights.scm b/queries/rst/highlights.scm index 5e463b633..c569336b8 100644 --- a/queries/rst/highlights.scm +++ b/queries/rst/highlights.scm @@ -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) diff --git a/queries/rst/locals.scm b/queries/rst/locals.scm index 6a249cc0e..45da96292 100644 --- a/queries/rst/locals.scm +++ b/queries/rst/locals.scm @@ -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 diff --git a/queries/rst/textobjects.scm b/queries/rst/textobjects.scm index 9f132dd61..c7f9e963b 100644 --- a/queries/rst/textobjects.scm +++ b/queries/rst/textobjects.scm @@ -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 |
