Skip to content

Expand arrays with attached comments in the formatter#740

Merged
emcfarlane merged 2 commits into
mainfrom
ed/fixFmtArrayComments
Jul 6, 2026
Merged

Expand arrays with attached comments in the formatter#740
emcfarlane merged 2 commits into
mainfrom
ed/fixFmtArrayComments

Conversation

@emcfarlane

Copy link
Copy Markdown
Contributor

Expand arrays with attached comments in the formatter. This matches the logic in print dict and fixes the trailing // comments corrupting the output when collapsed onto one line. Goldens updated to match new behavior.

Issue bufbuild/buf#4593

@emcfarlane emcfarlane requested a review from doriable July 1, 2026 21:13
@emcfarlane emcfarlane changed the title Fix array comments splitting Expand arrays with attached comments in the formatter Jul 1, 2026
@emcfarlane emcfarlane merged commit 80c91e5 into main Jul 6, 2026
10 checks passed
@emcfarlane emcfarlane deleted the ed/fixFmtArrayComments branch July 6, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants