From 62636576bce8e8121a3d70f63547fae40a52f697 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 12 Oct 2026 11:41:05 +0200 Subject: chore: refactor --- src/diag.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/diag.c') diff --git a/src/diag.c b/src/diag.c index 6962046..cb1a057 100644 --- a/src/diag.c +++ b/src/diag.c @@ -30,10 +30,10 @@ void report_error(struct Source source, struct Token token, const char* message) if (span == 0) span = 1; - const char* bold = colored() ? "\033[1m" : ""; + const char* bold = colored() ? "\033[1m" : ""; const char* red = colored() ? "\033[31m" : ""; const char* blue = colored() ? "\033[34m" : ""; - const char* reset = colored() ? "\033[0m" : ""; + const char* reset = colored() ? "\033[0m" : ""; int gutter = snprintf(NULL, 0, "%u", token.line); @@ -55,9 +55,9 @@ void report_error(struct Source source, struct Token token, const char* message) void report_error_message(const char* message) { - const char* bold = colored() ? "\033[1m" : ""; + const char* bold = colored() ? "\033[1m" : ""; const char* red = colored() ? "\033[31m" : ""; - const char* reset = colored() ? "\033[0m" : ""; + const char* reset = colored() ? "\033[0m" : ""; fprintf(stderr, "%s%serror:%s %s%s%s\n", bold, red, reset, bold, message, reset); } -- cgit v1.3