tree-sitter-grammars / tree-sitter-markdown

Markdown grammar for tree-sitter
MIT License
375 stars 45 forks source link

SPM support #58

Closed mattmassicotte closed 1 year ago

mattmassicotte commented 1 year ago

This adds Swift bindings.

Unfortunately, due to the two parsers and some limitations with Swift's build system, I had put some files within each parser's directory. This keeps the user's experience the same as other SPM-ified parsers they have used. But, if that feels to invasive, I can definitely change it.

MDeiml commented 1 year ago

Thanks a lot! The file structure seems fine. If I understand correctly this is separate bindings for both parsers anyways. If you're motivated you could write some logic to combine the parsers (see the rust bindings for reference) and add some test.

mattmassicotte commented 1 year ago

Ah thanks for the pointer! I'll definitely have a look at that.