ast: Use `{filename}:{row}:{col}` for location output

David Mak 2023-11-30 14:30:37 +08:00
parent d65298a05f
commit 9c864e7b38
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}