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

UseConsistentIndentation: When non-default options are used, cater for the case of a comment between pipe and newline #1463

Conversation

bergmeister
Copy link
Collaborator

PR Summary

Fixed #1459 so that indentation gets increased for setting values of IncreaseIndentationForFirstPipeline or IncreaseIndentationAfterEveryPipeline if there is a comment between pipe and newline (the comment caused it not work because it peeked only at the next token when checking for the newline or line continuation token.

PR Checklist

…r the case of a comment between pipe and newline
@bergmeister bergmeister merged commit 53ece47 into PowerShell:master Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Formatter fails for multi-line pipelines when the first line has two or more pipes
2 participants