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