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 {
2151
2151
/** EnumCaseStats = EnumCaseStat {semi EnumCaseStat */
2152
2152
def enumCaseStats (): List [DefTree ] = {
2153
2153
val cases = new ListBuffer [DefTree ] += enumCaseStat()
2154
- while (in.token != RBRACE ) {
2154
+ while (in.token != RBRACE && in.token != EOF ) {
2155
2155
acceptStatSep()
2156
2156
cases += enumCaseStat()
2157
2157
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object SyntaxHighlighting {
31
31
private val tripleQs = Console .RED_B + " ???" + NoColor
32
32
33
33
private val keywords : Seq [String ] = for {
34
- index <- IF to INLINE // All alpha keywords
34
+ index <- IF to ENUM // All alpha keywords
35
35
} yield tokenString(index)
36
36
37
37
private val interpolationPrefixes =
You can’t perform that action at this time.
0 commit comments