File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ object Parsers {
604604 // Therefore, make sure there would be a matching <outdent>
605605 def nextIndentWidth = in.indentWidth(in.next.offset)
606606 if (in.token == NEWLINE || in.token == NEWLINES )
607- && ! (nextIndentWidth < startIndentWidth)
607+ && ! (nextIndentWidth < startIndentWidth)
608608 then
609609 warning(
610610 if startIndentWidth <= nextIndentWidth then
@@ -632,7 +632,7 @@ object Parsers {
632632/* -------- REWRITES ----------------------------------------------------------- */
633633
634634 /** The last offset where a colon at the end of line would be required if a subsequent { ... }
635- * block would be converted to an indentation reg`ion .
635+ * block would be converted to an indentation region .
636636 */
637637 var possibleColonOffset : Int = - 1
638638
Original file line number Diff line number Diff line change @@ -492,10 +492,6 @@ object Scanners {
492492 indentPrefix = LBRACE
493493 case _ =>
494494 }
495- def isMatchCatchFollow (prev : Token ) =
496- nextWidth == lastWidth
497- && (prev == MATCH || prev == CATCH )
498- && token != CASE
499495 if (newlineIsSeparating &&
500496 canEndStatTokens.contains(lastToken) &&
501497 canStartStatTokens.contains(token) &&
You can’t perform that action at this time.
0 commit comments