Skip to content

Commit 442ffa8

Browse files
committed
Enable significant indentation after return
1 parent 8922323 commit 442ffa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/parsing/Tokens.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ object Tokens extends TokensCommon {
270270
final val closingRegionTokens = BitSet(RBRACE, CASE) | statCtdTokens
271271

272272
final val canStartIndentTokens: BitSet =
273-
statCtdTokens | BitSet(COLONEOL, EQUALS, ARROW, LARROW, WHILE, TRY, FOR)
273+
statCtdTokens | BitSet(COLONEOL, EQUALS, ARROW, LARROW, WHILE, TRY, FOR, RETURN)
274274
// `if` is excluded because it often comes after `else` which makes for awkward indentation rules TODO: try to do without the exception
275275

276276
/** Faced with the choice between a type and a formal parameter, the following

0 commit comments

Comments
 (0)