Commit cd8f456 1 parent 1ccaa47 commit cd8f456 Copy full SHA for cd8f456
File tree 2 files changed +6
-6
lines changed
scalafmt-core/shared/src/main/scala/org/scalafmt/internal
scalafmt-tests/src/test/resources/newlines
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,8 @@ class FormatOps(
153
153
case t if t.end >= end => Some (start.left)
154
154
case _ if start.hasBlankLine => Some (start.left)
155
155
case _ : T .RightParen
156
- if start.left.is[T .RightParen ] || start.left.is[T .LeftParen ] =>
156
+ if start.left.is[T .LeftParen ] || start.left.is[T .RightParen ] &&
157
+ ! start.meta.rightOwner.is[Member .SyntaxValuesClause ] =>
157
158
None
158
159
case _ : T .RightBracket if start.left.is[T .RightBracket ] => None
159
160
case _ : T .Comma | _ : T .LeftParen | _ : T .Semicolon | _ : T .RightArrow |
Original file line number Diff line number Diff line change @@ -7034,8 +7034,7 @@ class a {
7034
7034
)(in: Input[E]): Iteratee[E, Iteratee[E, A]] = in match {
7035
7035
case Input.El(e) => Iteratee.flatten(
7036
7036
Future(p(e))(pec).map(b =>
7037
- if (b) Done(inner, in)
7038
- else stepNoBreak(inner)(in)
7037
+ if (b) Done(inner, in) else stepNoBreak(inner)(in)
7039
7038
)(dec)
7040
7039
)
7041
7040
case _ => stepNoBreak(inner)(in)
@@ -7051,9 +7050,9 @@ class a {
7051
7050
}
7052
7051
>>>
7053
7052
class a {
7054
- atPos(body.pos)(casegen.one(substitution(
7055
- body
7056
- ))) // since SubstOnly treemakers are dropped, need to do it here
7053
+ atPos(body.pos)(casegen.one(
7054
+ substitution( body)
7055
+ )) // since SubstOnly treemakers are dropped, need to do it here
7057
7056
}
7058
7057
<<< SM 7.4.0: 52
7059
7058
maxColumn = 76
You can’t perform that action at this time.
0 commit comments