diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2020-12-31 14:28:26 -0500 |
|---|---|---|
| committer | Santos Gallegos <stsewd@protonmail.com> | 2021-01-01 09:49:14 -0500 |
| commit | 5ffcd75ea62d2391b1ce9cc0c71823bc4bf16045 (patch) | |
| tree | 2fbed9cb27c6710e64cdba23bfe03de05a1e9f95 /queries/python | |
| parent | Add c injection for ffi.cdef to lua (diff) | |
| download | nvim-treesitter-5ffcd75ea62d2391b1ce9cc0c71823bc4bf16045.tar nvim-treesitter-5ffcd75ea62d2391b1ce9cc0c71823bc4bf16045.tar.gz nvim-treesitter-5ffcd75ea62d2391b1ce9cc0c71823bc4bf16045.tar.bz2 nvim-treesitter-5ffcd75ea62d2391b1ce9cc0c71823bc4bf16045.tar.lz nvim-treesitter-5ffcd75ea62d2391b1ce9cc0c71823bc4bf16045.tar.xz nvim-treesitter-5ffcd75ea62d2391b1ce9cc0c71823bc4bf16045.tar.zst nvim-treesitter-5ffcd75ea62d2391b1ce9cc0c71823bc4bf16045.zip | |
RST: update parser and queries
- 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.
Diffstat (limited to 'queries/python')
0 files changed, 0 insertions, 0 deletions
