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

Additional modifications from wit-lsp #9

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

Michael-F-Bryan
Copy link

@Michael-F-Bryan Michael-F-Bryan commented May 9, 2024

This PR builds on top of #8 to add a bunch of extra changes that are required by wit-lsp.

  • Embed all queries in the Rust bindings and add a unit test to make sure they stay valid
  • Include a query used for code folding
  • Adjust grammar.js by extracting extra nodes and adding field names so it is possible for downstream users to more easily extract structured information from the AST

I moved this to its own PR because a lot of these changes are very specific to my use case and I don't know if I'll be breaking other users by rearranging the AST's nodes. All highlighting and parsing tests still pass, though.

@Michael-F-Bryan Michael-F-Bryan changed the title Include queries in rust Additional modifications from wit-lsp May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant