Skip to content
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

gracefully handle weird placement of linebreaks around comments #10660

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

jhump
Copy link
Contributor

@jhump jhump commented Sep 27, 2022

This adds more robustness to the handling of comments, particularly inline comments, even in the face of unusual newline placement. See changed test cases to get a feel for the change in behavior.

Fixes #10648.

@fowles fowles merged commit c45dd50 into protocolbuffers:main Sep 27, 2022
bithium pushed a commit to bithium/protobuf that referenced this pull request Sep 4, 2023
gracefully handle weird placement of linebreaks around comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

parser: weird formatting in a trailing comment causes all comments for next element to be ignored
3 participants