ChimeHQ / SwiftTreeSitter

Swift API for the tree-sitter incremental parsing system
BSD 3-Clause "New" or "Revised" License
271 stars 30 forks source link

Help configuring norg syntax #17

Closed figitaki closed 1 year ago

figitaki commented 1 year ago

I've been trying for a few days to get tree-sitter-norg to work with this library, however I cannot get a build artifact to work.

figitaki commented 1 year ago

Fixed.

mattmassicotte commented 1 year ago

Glad you got it working. Parsers can be quite difficult to set up. If you have any interest in SPM-ifying that one, I'd be happy to help. It looks quite standard, so should be straightforward.

figitaki commented 1 year ago

Thanks for checking in! Managed to get SPM setup. The issue I was running into was adding support for C++14 extension functionality. Opened an issue on the swift repo and got an answer there. Hopefully the changes will land soon and I can open a PR to update your README to indicate support! https://github.com/nvim-neorg/tree-sitter-norg/pull/52

mattmassicotte commented 1 year ago

oh wow, I wouldn't have known how to do that either. So many parsers have their own little quirks unfortunately. Very glad you figured it out, and super-cool of you to get that PR opened!