We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a0c581 + 2534faa commit 2efb6ddCopy full SHA for 2efb6dd
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -2151,7 +2151,7 @@ object Parsers {
2151
/** EnumCaseStats = EnumCaseStat {semi EnumCaseStat */
2152
def enumCaseStats(): List[DefTree] = {
2153
val cases = new ListBuffer[DefTree] += enumCaseStat()
2154
- while (in.token != RBRACE) {
+ while (in.token != RBRACE && in.token != EOF) {
2155
acceptStatSep()
2156
cases += enumCaseStat()
2157
}
compiler/src/dotty/tools/dotc/printing/SyntaxHighlighting.scala
@@ -31,7 +31,7 @@ object SyntaxHighlighting {
31
private val tripleQs = Console.RED_B + "???" + NoColor
32
33
private val keywords: Seq[String] = for {
34
- index <- IF to INLINE // All alpha keywords
+ index <- IF to ENUM // All alpha keywords
35
} yield tokenString(index)
36
37
private val interpolationPrefixes =
0 commit comments