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 {
604
604
// Therefore, make sure there would be a matching <outdent>
605
605
def nextIndentWidth = in.indentWidth(in.next.offset)
606
606
if (in.token == NEWLINE || in.token == NEWLINES )
607
- && ! (nextIndentWidth < startIndentWidth)
607
+ && ! (nextIndentWidth < startIndentWidth)
608
608
then
609
609
warning(
610
610
if startIndentWidth <= nextIndentWidth then
@@ -632,7 +632,7 @@ object Parsers {
632
632
/* -------- REWRITES ----------------------------------------------------------- */
633
633
634
634
/** 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 .
636
636
*/
637
637
var possibleColonOffset : Int = - 1
638
638
Original file line number Diff line number Diff line change @@ -492,10 +492,6 @@ object Scanners {
492
492
indentPrefix = LBRACE
493
493
case _ =>
494
494
}
495
- def isMatchCatchFollow (prev : Token ) =
496
- nextWidth == lastWidth
497
- && (prev == MATCH || prev == CATCH )
498
- && token != CASE
499
495
if (newlineIsSeparating &&
500
496
canEndStatTokens.contains(lastToken) &&
501
497
canStartStatTokens.contains(token) &&
You can’t perform that action at this time.
0 commit comments