We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80ec523 commit 048d45dCopy full SHA for 048d45d
compiler/src/dotty/tools/dotc/parsing/Scanners.scala
@@ -539,7 +539,7 @@ object Scanners {
539
|| nextWidth == lastWidth && (indentPrefix == MATCH || indentPrefix == CATCH) && token != CASE then
540
if currentRegion.isOutermost then
541
if nextWidth < lastWidth then currentRegion = topLevelRegion(nextWidth)
542
- else if !isLeadingInfixOperator(nextWidth) && !statCtdTokens.contains(lastToken) then
+ else if !isLeadingInfixOperator(nextWidth) && !statCtdTokens.contains(lastToken) && lastToken != INDENT then
543
currentRegion match
544
case r: Indented =>
545
currentRegion = r.enclosing
0 commit comments