From 2a7111e7006d4b3713d894c1b86194aade615ce5 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 11 Aug 2022 13:16:59 -0500 Subject: [PATCH] Colored error line/column numbers as well --- file/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/error.go b/file/error.go index 64d60f9..4aed323 100644 --- a/file/error.go +++ b/file/error.go @@ -46,7 +46,7 @@ func (err Error) Error () (formattedMessage string) { // print information about the location of the mistake if err.width > 0 { formattedMessage += fmt.Sprint ( - " ", err.Location.row + 1, + " \033[34m", err.Location.row + 1, ":", err.Location.column + 1) } formattedMessage +=