-
-
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
Problem injecting php #5
Comments
Instead of forking the repo and maintaining a separate copy of the original, the best thing to do would be to submit a PR to the original repo that splits into two different parsers, similar to the markdown parser in which two parsers live in the same repo: |
Very interesting @calebdw. Quick question 🤔, that doesn’t look like a submodule as well, are they maintaining two separate folders? PHP is ever growing so the main branch would be changing frequently as the new versions come out. Wouldn’t that mean duplicate work for writing new php grammars inside two separate folders? Now what I had in mind in terms of maintainability (which might not even be practical, as I am not really an expert in GitHub/git) was the following:
However that would mean either a separate forked project, or separate branch named I played around a bit with |
No those are not submodules, and the common grammar between the two is in a folder the next level up. In the case of the PHP parser I've already split them up and will try to submit a draft PR to garner feedback from the project maintainers. There's no duplicate work, the entire php grammer is in the |
Oh wow, you have already done all the work + the PR draft!! 🎉🎉 |
@calebdw sorry for bothering you about this. It seems like split parser support has landed (many thanks for that effort), but I wasn't able to verify it on my local setup (I'm the author of #51). Judging from the code of |
@stormherz no need to be sorry! There's an open PR to add the needed configs so that nvim-treesitter knows about |
@calebdw thanks! totally forgot about that option. works like a charm, actually |
|
@calebdw Amazing! thank you again for sorting that out! |
All editors have an issue injecting
php
.The problem arises because of the fact
php
parser has injection query forhtml
.Temporary fix ideas:
The text was updated successfully, but these errors were encountered: