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: format ()-enclosed case clause as a block #2165

Merged
merged 3 commits into from
Aug 26, 2020

Conversation

kitbellew
Copy link
Collaborator

That includes keeping the opening paren on the first line and avoiding extra indentation. Fixes #2137.

@kitbellew kitbellew requested a review from poslegm August 26, 2020 15:26
@inline
final def in(hints: SourceHints*): Boolean = hints.contains(this)
}
// the classic handler of source newlines
case object classic extends SourceHints
case object classic extends SourceHints {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sealed abstract class SourceHints(val ignoreSourceSplit: Boolean) {
 ...
}

case object classic extends SourceHints(ignoreSourceHints = false)

a slightly less verbose way

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect!

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.

Indent closing parenthesis to match the beginning of the statement with an open parenthesis
2 participants