tree-sitter-grammars / tree-sitter-markdown

Markdown grammar for tree-sitter
MIT License
411 stars 52 forks source link

Migrate scanner.cc to C #84

Closed lewis6991 closed 1 year ago

lewis6991 commented 1 year ago

Hey, we are thinking about bundling this parser into Neovim for v0.9, however one of the concerns is raising our build requirements to include C++. (https://github.com/neovim/neovim/pull/22458)

I've had a play with the markdown scanner.cc and I think it will be fairly straightforward to port this to C. To replace vector I think we could just include https://github.com/neovim/neovim/blob/master/src/klib/kvec.h.

Would this be something you would be open too?

MDeiml commented 1 year ago

Of course. Totally on board.