File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Tests/SwiftDiagnosticsTest Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -372,6 +372,7 @@ struct ANSIAnnotation {
372
372
case magenta = 35
373
373
case cyan = 36
374
374
case white = 37
375
+ case `default` = 39
375
376
}
376
377
377
378
enum Trait : UInt8 {
@@ -414,6 +415,6 @@ struct ANSIAnnotation {
414
415
415
416
/// Annotation used for highlighting source text.
416
417
static var sourceHighlight : ANSIAnnotation {
417
- ANSIAnnotation ( color: . white , trait: . underline)
418
+ ANSIAnnotation ( color: . default , trait: . underline)
418
419
}
419
420
}
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ final class DiagnosticsFormatterTests: XCTestCase {
127
127
"""
128
128
129
129
let expectedOutput = """
130
- \u{001B} [0;36m1 │ \u{001B} [0;0m for \u{001B} [4;37m (i \u{001B} [0;0m \u{001B} [4;37m = 0; i != 10; i += 1) \u{001B} [0;0m { }
130
+ \u{001B} [0;36m1 │ \u{001B} [0;0m for \u{001B} [4;39m (i \u{001B} [0;0m \u{001B} [4;39m = 0; i != 10; i += 1) \u{001B} [0;0m { }
131
131
\u{001B} [0;36m∣ \u{001B} [0;0m │ ╰─ \u{001B} [1;31merror: expected ')' to end tuple pattern \u{001B} [0;0m
132
132
\u{001B} [0;36m∣ \u{001B} [0;0m ╰─ \u{001B} [1;31merror: C-style for statement has been removed in Swift 3 \u{001B} [0;0m
133
133
You can’t perform that action at this time.
0 commit comments