Skip to content

Commit ffa9599

Browse files
committed
fixes
1 parent 576e2d2 commit ffa9599

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

compiler/src/scala/quoted/runtime/impl/printers/SyntaxHighlight.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ object SyntaxHighlight {
2222
private val ValDefColor = Console.CYAN
2323
private val LiteralColor = Console.RED
2424
private val StringColor = Console.GREEN
25-
private val TypeColor = Console.MAGENTA
26-
private val AnnotationColor = Console.MAGENTA
25+
private val TypeColor = Console.GREEN
26+
private val AnnotationColor = Console.GREEN
2727

2828
def highlightKeyword(str: String): String = KeywordColor + str + NoColor
2929
def highlightTypeDef(str: String): String = TypeColor + str + NoColor

repl/src/dotty/tools/repl/Rendering.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import dotc.*, core.*
77
import Contexts.*, Denotations.*, Flags.*, NameOps.*, StdNames.*, Symbols.*
88
import printing.ReplPrinter
99
import printing.SyntaxHighlighting
10-
import dotty.shaded.{fansi, pprint}
1110
import reporting.Diagnostic
12-
import util.StackTraceOps.*
11+
import StackTraceOps.*
1312

1413
import scala.compiletime.uninitialized
1514
import scala.util.control.NonFatal
@@ -47,8 +46,8 @@ private[repl] class Rendering(parentClassLoader: Option[ClassLoader] = None):
4746
val cl = classLoader()
4847
val pprintCls = Class.forName("dotty.shaded.pprint.PPrinter$Color$", false, cl)
4948
val fansiStrCls = Class.forName("fansi.Str", false, cl)
50-
val BlackWhite = pprintCls.getField("MODULE$").get(null)
51-
val BlackWhite_apply = pprintCls.getMethod("apply",
49+
val Color = pprintCls.getField("MODULE$").get(null)
50+
val Color_apply = pprintCls.getMethod("apply",
5251
classOf[Any], // value
5352
classOf[Int], // width
5453
classOf[Int], // height

compiler/src/dotty/tools/dotc/util/StackTraceOps.scala renamed to repl/src/dotty/tools/repl/StackTraceOps.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
* additional information regarding copyright ownership.
1111
*/
1212

13-
package dotty.tools.dotc.util
13+
package dotty.tools.repl
1414

1515
import scala.language.unsafeNulls
16-
import dotty.shaded.fansi
1716
import collection.mutable, mutable.ListBuffer
1817
import dotty.tools.dotc.util.chaining.*
1918
import java.lang.System.lineSeparator

0 commit comments

Comments
 (0)