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

Router: indent comment before first select #2066

Merged
merged 3 commits into from
Jul 4, 2020

Conversation

kitbellew
Copy link
Collaborator

Move this code from FormatWriter. Fixes #2042.

@kitbellew kitbellew requested a review from poslegm July 3, 2020 20:00
kitbellew added 3 commits July 4, 2020 08:44
Also, modify existing tests to ensure that comments in select chains are
not provided without indentation, as this has been historically handled
differently to be consistent with IDE behaviour commenting out code.

Finally, add test with docstring after block; since the fix we introduce
in the next commit will shift indent from FormatWriter to Router, that
will expose a feature(?) in FormatWriter which ignored a blank line in
such a case and output only a single newline.
@kitbellew kitbellew merged commit 7faae05 into scalameta:master Jul 4, 2020
@kitbellew kitbellew deleted the 2042 branch July 4, 2020 16:17
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.

Comments align with following line indentation
2 participants