Skip to content

Commit e47adc0

Browse files
committed
Fix scala#3814 Correct highlighting after '|', ':', '&' characters in REPL
1 parent 8f03ade commit e47adc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/printing/SyntaxHighlighting.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ object SyntaxHighlighting {
4444

4545
private val typeEnders =
4646
'{' :: '}' :: ')' :: '(' :: '[' :: ']' :: '=' :: ' ' :: ',' :: '.' :: '|' ::
47-
:: '&' :: '\n' :: Nil
47+
'&' :: '\n' :: Nil
4848

4949
def apply(chars: Iterable[Char]): Iterable[Char] = {
5050
var prev: Char = 0

0 commit comments

Comments
 (0)