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
Inline comment belong to the next line #791
Comments
If codes like this:
The comment "v1-comment" is missing. If codes like this:
The comment "v1-comment" is belong to v2 attribute. And v2-comment is missing. @nikic So, this is a bug? |
glowdan
changed the title
Inline comment belong to the statement at same line.
Inline comment belong to the next line
Jul 9, 2021
See: #742 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I parse the statements with comments. I saw something strange.
In my opinion, the inline comment belong to the code of the same line code.
but I see it is belong to the next line code now, after I tested for several times.
Here is the codes.
But when i got the parsed ast, I noticed the comment belong to the next line of "$i=1":
Here are the diffrent examples.
The text was updated successfully, but these errors were encountered: