summaryrefslogtreecommitdiff
path: root/queries/rst
AgeCommit message (Collapse)Author
2022-10-15highlights(rst): disable spell for code blocksObserverOfTime
injections(rst): add sourcecode directive
2022-09-26feat(spell): support more languagesLewis Russell
2022-09-06feat(spell): upstream spell queries from spellsitterLewis Russell
2021-08-08RST: use `any-of?` instead of `match?` (#1678)Santos Gallegos
2021-08-08RST: add code-block to injections (#1677)Santos Gallegos
This isn't part of the rst spec, but it's common enough on third party libs (sphinx specially).
2021-05-31Improve check-queries (#1253)Santos Gallegos
- Add checks for injections. - Allow queries that start with [A-Z] for highlights only. - Don't stop on the first error, finish checking all queries.
2021-05-07Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos
This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
2021-04-28Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos
* Comment: use `@combined` to create just one tree per buffer There is no need to create a tree per line/block for comments. Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251 * Add injections for scss * Fix jsonc * Combine jsdoc
2021-03-30Add text.reference and text.environmentStephan Seitz
2021-03-12Add comment parser to highlight comment tags (#893)Santos Gallegos
Closes #236
2021-02-15highlights(rst): Reset highlights in doctest_blockStephan Seitz
2021-01-02RST: update injection queriesSantos Gallegos
Finally, highlight for code blocks
2021-01-01RST: update parser and queriesSantos Gallegos
- The directive type does not longer includes `::`. - The content of the directives is not longer interpreted as rst, but it uses language injection for it. - Fix a query to allow to capture targets without link. - Reset the content of the math role so it can be highlighted by the injection instead. Problems I found: - Capturing the same node with @language and @content will raise an error. ``` Error detected while processing FileType Autocommands for "*": E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:331: table index is nil ``` Harcoding the language works, Using the offset predicate doesn't work either `(#offset! 0 0 1 0)` nor `(#offset! 0 0 0 5)` - Generating the grammar using `tree-sitter-cli@0.17.x` breaks nvim-treesitter, `@0.16.9` works.
2020-10-04Remove textobjects moduleStephan Seitz
2020-09-18RST: update queriesSantos Gallegos
Some nodes were renamed and added more textobjects.
2020-09-15RST: update localsSantos Gallegos
A title is an implicit target.
2020-09-06rst: remove unused capturesSantos Gallegos
This is causing an error.
2020-08-16fix(queries): use vim-match for non lua regexesSteven Sojka
2020-08-11RST: update textobjectsSantos Gallegos
2020-08-07RST: update queriesSantos Gallegos
2020-08-01RST: update localsSantos Gallegos
2020-08-01RST: update highlightsSantos Gallegos
2020-07-29rst: update highlight queriesSantos Gallegos
2020-07-27Parsers: add reStructuredTextSantos Gallegos