neovim / tree-sitter-vimdoc

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

Wrong detection of autocmd paragraph #106

Closed bew closed 1 year ago

bew commented 1 year ago

In the list of autocmds: https://neovim.io/doc/user/autocmd.html#BufRead At the paragraph for BufRead or BufReadPost there seems to be an issue with the detection of the next autocmd paragraph:

Screenshot_20230527_113729

All text is considered part of the paragraph for BufRead or BufReadPost, and it only goes back to normal at the next blank line (in the middle of BufWinEnter's paragraph).

Currently BufRead, BufReadCmd, BufReadPre, BufUnload & BufWinEnter are in the same big paragraph instead of being separated.

clason commented 1 year ago

Duplicate of #21

justinmk commented 1 year ago

Currently BufRead, BufReadCmd, BufReadPre, BufUnload & BufWinEnter are in the same big paragraph instead of being separated.

As mentioned, known limitation. But also, is it even reasonable for anything except AI to make sense of this structure? It would be quite reasonable to simply add blank lines to the help text.