Skip to content

Commit 25af394

Browse files
committed
Polishings
1 parent bdf9b81 commit 25af394

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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) &&

0 commit comments

Comments
 (0)