-
Notifications
You must be signed in to change notification settings - Fork 66
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
Comment syntax #306
Comments
I think |
Please note that the main issue is that
It does not, I disagree with the above assumption.
String literals (among other things) get highlighted in
Comments are spotted easiest when displayed in a different color, don't you think? Also, |
I'd even like to do the PR myself, but when it has near-zero probability of getting merged, I'll not waste my time. |
There is no need to debate over whether In the wording of your reply I sense some kind of aggression, which I hope I am misinterpreting. I am just trying to get an understanding of the advantages, as I see it as my duty to weigh them against the disadvantages. If I understand you correctly, editors do a good enough job of syntax highlighting PEG grammars with your proposed changes. That'll be a nice improvement, although I am not 100% sure that there are no other sequences of characters that are valid in a PEG but invalid inside But note that The first step I think should be to see how Second step would be to change the grammar and regenerate the parser, and test the examples. See if it works well for you. Third step is to make the PR, do the release and update the documentation. Sounds good? Thanks for helping to improve Pegged! |
To be honest, I didn't know that, but I suspected it.
You're a little right, but mostly misinterpreting. Annoyed fits far better. I actually tried to be constructive in my state of mind.
I am 100% sure that there do exist sequences of characters that are valid in a PEG but invalid inside
Does well sound good! Maybe all the negative emotion was there, because I really like Pegged. So, I'll play around the Pegged grammar a bit. |
I closed this accidentally, sorry. |
Workaround: Put something after the hash. I do my comments with |
Pegged uses
#
as the start of its line comment which does not work well with D'sq{}
strings. This is not an issue of taste, the D compiler rejects#
as a token. Literally anything else would be a better choice as it would at least compile. As a stupid question, why not also accept regular old D comments starting with//
? Technically,//
is valid as part of a rule, but I'd guess no one uses empty choices that way.The text was updated successfully, but these errors were encountered: