File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/dotty/tools/dotc/printing Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ package printing
4
4
5
5
import parsing .Tokens ._
6
6
import scala .annotation .switch
7
- import scala .collection .mutable
8
7
import scala .collection .mutable .StringBuilder
9
8
10
9
/** This object provides functions for syntax highlighting in the REPL */
@@ -39,7 +38,7 @@ object SyntaxHighlighting {
39
38
def apply (chars : Iterable [Char ]): Vector [Char ] = {
40
39
var prev : Char = 0
41
40
var remaining = chars.toStream
42
- val newBuf = new mutable. StringBuilder
41
+ val newBuf = new StringBuilder
43
42
44
43
@ inline def keywordStart =
45
44
prev == 0 || prev == ' ' || prev == '{' || prev == '(' || prev == '\n '
@@ -268,5 +267,4 @@ object SyntaxHighlighting {
268
267
269
268
newBuf.toVector
270
269
}
271
-
272
270
}
You can’t perform that action at this time.
0 commit comments