Skip to content

Commit

Permalink
Add no-indent infix test for right-assoc operator
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Jun 17, 2024
1 parent a29ed06 commit cc17695
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions scalafmt-tests/src/test/resources/test/IndentOperator.stat
Original file line number Diff line number Diff line change
Expand Up @@ -3731,6 +3731,42 @@ object a {
b
)
}
<<< aloneArgOrBody, right-assoc
newlines.source = keep
indentOperator.exemptScope = aloneArgOrBody
indentOperator.excludeRegex = ".*:$"
===
object a {
foo { x =>
a ::
b
}
foo { x =>
val bar = qux
a ::
b
}
foo ( x =>
a ::
b
)
}
>>>
object a {
foo { x =>
a ::
b
}
foo { x =>
val bar = qux
a ::
b
}
foo(x =>
a ::
b
)
}
<<< #3327 relativeToLhsLastLine
runner.dialect = scala3
indentOperator.exemptScope = aloneEnclosed
Expand Down

0 comments on commit cc17695

Please sign in to comment.