File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ object SyntaxHighlighting {
44
44
45
45
private val typeEnders =
46
46
'{' :: '}' :: ')' :: '(' :: '[' :: ']' :: '=' :: ' ' :: ',' :: '.' :: '|' ::
47
- '\n ' :: Nil
47
+ :: '&' :: '\n ' :: Nil
48
48
49
49
def apply (chars : Iterable [Char ]): Iterable [Char ] = {
50
50
var prev : Char = 0
@@ -55,7 +55,7 @@ object SyntaxHighlighting {
55
55
@ inline def keywordStart =
56
56
prev == 0 || prev == ' ' || prev == '{' || prev == '(' ||
57
57
prev == '\n ' || prev == '[' || prev == ',' || prev == ':' ||
58
- prev == '|'
58
+ prev == '|' || prev == '&'
59
59
60
60
@ inline def numberStart (c : Char ) =
61
61
c.isDigit && (! prev.isLetter || prev == '.' || prev == ' ' || prev == '(' || prev == '\u0000 ' )
You can’t perform that action at this time.
0 commit comments