neovim / tree-sitter-vimdoc

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

feat!: support only "-", "•" as listitem, constrain (argument) definition #97

Closed justinmk closed 1 year ago

justinmk commented 1 year ago

Problem

Solution

fixes https://github.com/neovim/tree-sitter-vimdoc/issues/96

clason commented 1 year ago

@justinmk can we get this in for 2.0.0/Nvim 0.9, even as a partial fix? Seems like the code should work?

justinmk commented 1 year ago

Why is this a priority for nvim 0.9? AFAIR this change wasn't as easy as it looks, though I can try to look at it in a few days

clason commented 1 year ago

Not a priority, just nice to have (and marked as a breaking change, so could be rolled into the 2.0.0 release).

justinmk commented 1 year ago

This is in decent shape now and fixes #96 .

✅ It causes some errors in the generated help, need to double-check that.

clason commented 1 year ago

any follow-ups planned? otherwise I'd cut a release and bump the bundled parser.

justinmk commented 1 year ago

Yeah I think we should get https://github.com/neovim/tree-sitter-vimdoc/pull/103 in before releasing.

clason commented 1 year ago

That one has a bunch of regressions, unfortunately. I'd prefer to tackle this in smaller steps, fwiw. Let's see how it looks after a rebase, though.

justinmk commented 1 year ago

Yeah, no objection to releasing.

clason commented 1 year ago

Release early, release often ;)

(I'm trying to poke tree-sitter into making more regular releases from their parsers; right now, we're either stuck in 2021 -- worst timeline -- or need to track HEAD even for releases.)

In any case, not really urgent; that was meant more as an offer to take things off your plate.