Skip to content

gracefully handle weird placement of linebreaks around comments#10660

Merged
fowles merged 1 commit intoprotocolbuffers:mainfrom
jhump:jh/comments-ignored
Sep 27, 2022
Merged

gracefully handle weird placement of linebreaks around comments#10660
fowles merged 1 commit intoprotocolbuffers:mainfrom
jhump:jh/comments-ignored

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