Skip to content

Preserve comments at the end of multiline pipeline#210

Merged
fdncred merged 1 commit into
nushell:mainfrom
HigherOrderLogic:main
Jul 23, 2026
Merged

Preserve comments at the end of multiline pipeline#210
fdncred merged 1 commit into
nushell:mainfrom
HigherOrderLogic:main

Conversation

@HigherOrderLogic

Copy link
Copy Markdown
Contributor

Description of changes

Make the formatter dont delete inline comments between a multiline pipeline statement.

Previously, when there are inline comments at the end of a line in multiline pipeline, the comments get removed when the formatter run, which is probably not the desired behavior.

See the new test case for more detail.

Relevant Issues

N/A.

@fdncred

fdncred commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Thanks

@fdncred
fdncred merged commit f4c2e3b into nushell:main Jul 23, 2026
5 checks passed
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