Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tree-sitter-loader to build grammars #830

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Xophmeister
Copy link
Member

@Xophmeister Xophmeister commented Jan 15, 2025

Migrate to tree-sitter-loader to build grammars

Resolves #821
Resolves #829

Description

  • Do a light clone of the grammar repo (--filter=blob:none).

  • Use tree-sitter-loader::Loader::compile_parser_at_path to build grammars dynamically, rather than curating our own build pipeline. This should give us cross-platform support.

Checklist

Checklist before merging:

  • CHANGELOG.md updated
  • README.md up-to-date

@Xophmeister Xophmeister marked this pull request as ready for review January 16, 2025 17:29
@Xophmeister Xophmeister requested review from nbacquey and yannham and removed request for nbacquey January 16, 2025 17:30
@Xophmeister
Copy link
Member Author

Xophmeister commented Jan 17, 2025

Hmm... Well this is quite annoying.

This builds fine and cargo test --all-features passes with no problem, but nix flake check is giving weird Clippy errors against code that hasn't changed 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant