Open cpkio opened 2 years ago
Hi, I'm not able to replicate this with your example
the CST is correctly generated. I think you may have some whitespaces that github is removing, would be better if you share it as a file.
TS Playground does not replace Neovim practice.
I've created an isolated environment, with only TS (+rst grammar) and TSPlayground plugins installed. Then I'm opening test file, TSPlayground panel, bind gwip
to <A-q>
press.
Hmmm, that's interesting, I wasn't aware of gw
, looks like it formats the line to respect the textwidth
option. Anyway, don't think this is a problem with the grammar, but a bug on neovim, after saving and reloading the buffer the correct tree is shown.
This is the same problem as https://github.com/stsewd/tree-sitter-rst/issues/44.
Using
gwis
orgwip
on any of these list items will eventually lead to first line of them be recognized as definition list term (mostly because definition list is allowed by grammar to start from a number or a bullet I suppose).The reference says these lists are correct: