summaryrefslogtreecommitdiff
path: root/queries/rst/locals.scm
AgeCommit message (Collapse)Author
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-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-08-01RST: update localsSantos Gallegos
2020-07-27Parsers: add reStructuredTextSantos Gallegos