You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the Polygen definition for Highlight is now included in the official package (and has been so for a while, after this repository was created), we could safely remove the polygen.lang file from the repository.
If we ever need to update/improve the Polygen or EBNF definition, keeping it within the repository is a better option (and doesn't add any burdern).
Since the repository is set to download and use a specific version of Highlight, we don't need to worry about future updated of the app not being backward compatible.
Pros
On the other hand, if the Polygen or EBNF definition is updated mainstream (e.g. by a third party) it we would loose any benefits — integrating the new version would only require updating the download script that selects a specific release of Highlight.
Although I'm the creator and maintainer of both syntaxes, it's possible that someone will update one of those syntaxes in the future (more so the EBNF syntax) — which might bring benefits to us, but could also crack things up.
Conclusion
Either way, manually overriding the Polygen or EBNF syntax in the repository is a simple cut and paste operation, and keeping the definition local to the project allows ensuring that the exact Polygen definition is used, regardless of the Highlight release that end users adopt.
So it might be better right now to keep things as they are, and keep any eye on how Highlight evolves and if its syntaxes are updated (or, indeed, if the application undergoes changes that might require fixing the definitions).
The text was updated successfully, but these errors were encountered:
Me too. It's more of an "internal memo" for the future, and for the benefit of other maintainers (forks, etc.); but also something to keep an eye on, in case a future Highlight update might break our custom grammars (unlikely) and we might have to decide if we need to switch to the bundled ones (assuming they were re-adapted), and so on.
Whenever I can, I like to leave notes behind, because my memory is not always good, and I tend to spread thin over too many projects and then loose grip on where I left since my last updates.
Since the Polygen definition for Highlight is now included in the official package (and has been so for a while, after this repository was created), we could safely remove the
polygen.lang
file from the repository.polygen.lang
ebnf2.lang
.gitattributes
I still haven't set my mind on this, and will wait before taking any action — this Issue is here mainly as a reminder of this possibility.
Considerations
There are pros and cons to this action:
Cons
If we ever need to update/improve the Polygen or EBNF definition, keeping it within the repository is a better option (and doesn't add any burdern).
Since the repository is set to download and use a specific version of Highlight, we don't need to worry about future updated of the app not being backward compatible.
Pros
On the other hand, if the Polygen or EBNF definition is updated mainstream (e.g. by a third party) it we would loose any benefits — integrating the new version would only require updating the download script that selects a specific release of Highlight.
Although I'm the creator and maintainer of both syntaxes, it's possible that someone will update one of those syntaxes in the future (more so the EBNF syntax) — which might bring benefits to us, but could also crack things up.
Conclusion
Either way, manually overriding the Polygen or EBNF syntax in the repository is a simple cut and paste operation, and keeping the definition local to the project allows ensuring that the exact Polygen definition is used, regardless of the Highlight release that end users adopt.
So it might be better right now to keep things as they are, and keep any eye on how Highlight evolves and if its syntaxes are updated (or, indeed, if the application undergoes changes that might require fixing the definitions).
The text was updated successfully, but these errors were encountered: