| Age | Commit message (Collapse) | Author |
|
injections(rst): add sourcecode directive
|
|
|
|
|
|
|
|
This isn't part of the rst spec,
but it's common enough on third party libs (sphinx specially).
|
|
- 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.
|
|
This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
|
|
* 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
|
|
|
|
Closes #236
|
|
|
|
Finally, highlight for code blocks
|
|
- 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.
|
|
|
|
Some nodes were renamed and added more textobjects.
|
|
A title is an implicit target.
|
|
This is causing an error.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|