Skip to content

Commit a3c4ec7

Browse files
authored
Merge pull request #4439 from ingarabr/bugfix/repl-null-highlighting
add delimiters to fix parsing of null keyword
2 parents dfab5e5 + e692e8a commit a3c4ec7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ package printing
55
import parsing.Tokens._
66
import scala.annotation.switch
77
import scala.collection.mutable.StringBuilder
8-
import core.Contexts.Context
98
import util.Chars
10-
import Highlighting.{Highlight, HighlightBuffer}
119

1210
/** This object provides functions for syntax highlighting in the REPL */
1311
object SyntaxHighlighting {
@@ -280,9 +278,12 @@ object SyntaxHighlighting {
280278
case ' ' => true
281279
case '\n' => true
282280
case '(' => true
281+
case ')' => true
283282
case '[' => true
283+
case ']' => true
284284
case ':' => true
285285
case '@' => true
286+
case ',' => true
286287
case '.' => true
287288
case _ => false
288289
}

0 commit comments

Comments
 (0)