| ... | ... | @@ -357,16 +357,18 @@ pub const AllErrors = struct { |
| 357 | 357 | ttyconf.setColor(stderr, .Bold); |
| 358 | 358 | try stderr.print(" {s}\n", .{src.msg}); |
| 359 | 359 | ttyconf.setColor(stderr, .Reset); |
| 360 | | if (src.source_line) |line| { |
| 361 | | for (line) |b| switch (b) { |
| 362 | | '\t' => try stderr.writeByte(' '), |
| 363 | | else => try stderr.writeByte(b), |
| 364 | | }; |
| 365 | | try stderr.writeByte('\n'); |
| 366 | | try stderr.writeByteNTimes(' ', src.column); |
| 367 | | ttyconf.setColor(stderr, .Green); |
| 368 | | try stderr.writeAll("^\n"); |
| 369 | | ttyconf.setColor(stderr, .Reset); |
| 360 | if (ttyconf != .no_color) { |
| 361 | if (src.source_line) |line| { |
| 362 | for (line) |b| switch (b) { |
| 363 | '\t' => try stderr.writeByte(' '), |
| 364 | else => try stderr.writeByte(b), |
| 365 | }; |
| 366 | try stderr.writeByte('\n'); |
| 367 | try stderr.writeByteNTimes(' ', src.column); |
| 368 | ttyconf.setColor(stderr, .Green); |
| 369 | try stderr.writeAll("^\n"); |
| 370 | ttyconf.setColor(stderr, .Reset); |
| 371 | } |
| 370 | 372 | } |
| 371 | 373 | for (src.notes) |note| { |
| 372 | 374 | try note.renderToStdErrInner(ttyconf, stderr_file, "note:", .Cyan, indent); |