File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ object Scanners {
539539 || nextWidth == lastWidth && (indentPrefix == MATCH || indentPrefix == CATCH ) && token != CASE then
540540 if currentRegion.isOutermost then
541541 if nextWidth < lastWidth then currentRegion = topLevelRegion(nextWidth)
542- else if ! isLeadingInfixOperator(nextWidth) && ! statCtdTokens.contains(lastToken) then
542+ else if ! isLeadingInfixOperator(nextWidth) && ! statCtdTokens.contains(lastToken) && lastToken != INDENT then
543543 currentRegion match
544544 case r : Indented =>
545545 currentRegion = r.enclosing
Original file line number Diff line number Diff line change 1+ def main (args : Array [String ]): Unit =
2+ val bar : PartialFunction [Throwable , Unit ] =
3+ case e : IllegalArgumentException => e.printStackTrace
4+ case e : Throwable => e.printStackTrace
5+ try
6+ println(" a" )
7+ catch
8+ bar
9+ finally
10+ println(" a" )
You can’t perform that action at this time.
0 commit comments