-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore: add example parsing script #53
Conversation
Note that you can ignore errors by adding them to the |
8e81631
to
bc96490
Compare
@calebdw amazing. This is actually very neat! One question though. may I ask how do you handle your conflicts with the I have actually already raised an issue for this a while ago, as it was bugging me during the dev |
I'm not sure what conflicts you're talking about? I haven't really had any issues... |
@calebdw ah, let me elaborate more. So let us say you have a folder where all you When you run The Parse Error Example
To reproduce
Fix?
I am actually surprised that you managed to parse with no issues, considering that you are working with/on both parsers 🤔 Would be interesting to know how and why! :) |
Hmm, I've never run into any issues, and I've never touched the default treesitter config so just running with the defaults. I install all of my repos at
and I've never had any conflicts |
Mmm that is so strange now! Your set up is pretty much like mine. So with this same set up if you:
Can I ask your OS? Are you on Mac or Linux? |
I tried that and still no issues. I'm on Linux (PopOS from System76) |
@calebdw sorry my comments were sitting in the files as "pending", I thought it was "pending" awaiting your review! What an awful UI/UX design by github! However I went to the repo, when I was not logged in and realised it has not been submitted. Anyhow apologies for super delay getting back to you, this should have reached you a week ago maybe more! 😬 |
No worries! I can try to add the |
It should hopefully be fine in the CI 🤞, as it is based in the data in the Of course if not we can revert etc as CI is more important. I will scramble an adjusted one maybe for my own local testing :) I usually like to heavy stress test locally before I commit and this is a great tool to have in the toolbox! It was nice to see new parsing issues arise after your first run using only one repo! |
you were indeed right! I just revert it back to your original! |
Hello!
This adds an example parsing script similar to other tree-sitter repos. The script is used to checkout repos and execute the grammar on the files to ensure there's no issues parsing files in the community. Currently this is just parsing Breeze, but we can add other popular repos as needed/desired.
This actually revealed two bugs (I'll open an issue):
@js
is parsed as a conditional@foreach((array) $messages as $message)
Thanks!