-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Disappearing comments with LexicalPreservingPrinter #4376
Labels
Comments
andrecsilva
changed the title
Dissapearing comments with LexicalPreservingPrinter
Disappearing comments with LexicalPreservingPrinter
Apr 19, 2024
It's a complicated case and I'm surprised that you're the first person to spot this issue. Unfortunately I'm not going to be able to solve it immediately. No matter how much I think about it, I can't see how to display the comment with the LexicalPreservingPrinter. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Moving statements may make their associated comments disappear from LexicalPreservingPrinter output.
An example:
Output:
Notice the last comment is present with the default printer, but won't be printed with the LexicalPreservingPrinter. There is also an extra empty line at the end of the block.
The text was updated successfully, but these errors were encountered: