File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2151,7 +2151,7 @@ object Parsers {
21512151 /** EnumCaseStats = EnumCaseStat {semi EnumCaseStat */
21522152 def enumCaseStats (): List [DefTree ] = {
21532153 val cases = new ListBuffer [DefTree ] += enumCaseStat()
2154- while (in.token != RBRACE ) {
2154+ while (in.token != RBRACE && in.token != EOF ) {
21552155 acceptStatSep()
21562156 cases += enumCaseStat()
21572157 }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object SyntaxHighlighting {
3131 private val tripleQs = Console .RED_B + " ???" + NoColor
3232
3333 private val keywords : Seq [String ] = for {
34- index <- IF to INLINE // All alpha keywords
34+ index <- IF to ENUM // All alpha keywords
3535 } yield tokenString(index)
3636
3737 private val interpolationPrefixes =
You can’t perform that action at this time.
0 commit comments