-
Notifications
You must be signed in to change notification settings - Fork 103
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
Operator's rule makes its parsing disjointed with comment #627
Comments
Hmm, well spotted! The lexer forbids operators starting with either |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I find it strange how
sail
currently handlesoperator + comment
forms like==/**/
or=/**/
.It seems the issue is caused by the
operatorn
rule inlexel.mll
. To debug this, I added some print statements inside:When I format the following code:
Here is the output:
Comments are treated as part of the operator (although they are valid operators in the documentation?).
if this behavior is valid, then we should fix the error?
if not, is there a way to separate the comment?
any advice?
The text was updated successfully, but these errors were encountered: