Skip to content

Commit 19ce196

Browse files
committed
Force highlighting again
Since we only highlight strings...
1 parent 0a8bd2d commit 19ce196

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,12 +2418,12 @@ object Parsers {
24182418

24192419
def flagPos(flag: FlagSet) = mods.mods.find(_.flags == flag).get.pos
24202420
if (mods is Abstract)
2421-
syntaxError(hl"""${Abstract} modifier cannot be used for objects""", flagPos(Abstract))
2421+
syntaxError(hl"""${Abstract.toString} modifier cannot be used for objects""", flagPos(Abstract))
24222422
if (mods is Sealed)
2423-
syntaxError(hl"""${Sealed} modifier is redundant for objects""", flagPos(Sealed))
2423+
syntaxError(hl"""${Sealed.toString} modifier is redundant for objects""", flagPos(Sealed))
24242424
// Maybe this should be an error; see https://github.com/scala/bug/issues/11094.
24252425
if (mods is Final)
2426-
warning(hl"""${Final} modifier is redundant for objects""", source atPos flagPos(Final))
2426+
warning(hl"""${Final.toString} modifier is redundant for objects""", source atPos flagPos(Final))
24272427

24282428
finalizeDef(ModuleDef(name, template), mods, start)
24292429
}

0 commit comments

Comments
 (0)