Skip to content

Commit 81331f8

Browse files
committed
Disable scheme under -noindent
1 parent 14afbe9 commit 81331f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,10 @@ object Scanners {
436436
}
437437

438438
def isContinuingParens() =
439-
openParensTokens.contains(token) && !pastBlankLine && !isScala2CompatMode
439+
openParensTokens.contains(token)
440+
&& !pastBlankLine
441+
&& !isScala2CompatMode
442+
&& !noindentSyntax
440443

441444
/** The indentation width of the given offset */
442445
def indentWidth(offset: Offset): IndentWidth = {

0 commit comments

Comments
 (0)