neovim / tree-sitter-vimdoc

Tree-sitter parser for Vim help files
Apache License 2.0
103 stars 13 forks source link

parse error for indent text block #30

Closed jdhao closed 2 years ago

jdhao commented 2 years ago

The display here is not right compared to builtin help file. Maybe the text block should be rendered as code blocks.

justinmk commented 2 years ago

Maybe the text block should be rendered as code blocks.

Definitely would be great to have block indentation indicated by the parse tree https://github.com/neovim/tree-sitter-vimdoc/issues/20

Meanwhile, most pages are rendered in fixed (preformatted) layout, like a codeblock. There is some other bug happening at https://neovim.io/doc/user/usr_25.html#_virtual-replace-mode Edit: it's the isolated | chars confusing the parser.

Thanks for reporting!