This commit is contained in:
Andrew Kelley 2025-07-01 19:50:40 -07:00
parent dd4eb86bc1
commit f23b15b4d5

View File

@ -443,7 +443,7 @@ pub fn renderMessage(comp: *Compilation, m: anytype, msg: Message) void {
printRt(m, prop.msg, .{"{s}"}, .{&str}); printRt(m, prop.msg, .{"{s}"}, .{&str});
} else { } else {
var buf: [3]u8 = undefined; var buf: [3]u8 = undefined;
const str = std.fmt.bufPrint(&buf, "x{x}", .{std.fmt.fmtSliceHexLower(&.{msg.extra.invalid_escape.char})}) catch unreachable; const str = std.fmt.bufPrint(&buf, "x{x}", .{msg.extra.invalid_escape.char}) catch unreachable;
printRt(m, prop.msg, .{"{s}"}, .{str}); printRt(m, prop.msg, .{"{s}"}, .{str});
} }
}, },