From 9c864e7b38b68130bd5197b6ebe1ed8206f9d869 Mon Sep 17 00:00:00 2001 From: David Mak Date: Thu, 30 Nov 2023 14:30:37 +0800 Subject: [PATCH] ast: Use `{filename}:{row}:{col}` for location output --- nac3ast/src/location.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3ast/src/location.rs b/nac3ast/src/location.rs index 880b824..2d658d5 100644 --- a/nac3ast/src/location.rs +++ b/nac3ast/src/location.rs @@ -26,7 +26,7 @@ pub struct Location { impl fmt::Display for Location { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{}: line {} column {}", self.file.0, self.row, self.column) + write!(f, "{}:{}:{}", self.file.0, self.row, self.column) } }