hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit d80f53d088041206f139e2f80afab95612f3c341
parent 58ef0c237d0ae8b982e2485abebaa7fe289dd5d2
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 24 Feb 2021 13:18:56 -0500

hare::lex::errstr: update syntax format

Diffstat:
Mhare/lex/lex.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hare/lex/lex.ha b/hare/lex/lex.ha @@ -27,7 +27,7 @@ export fn errstr(err: error) const str = { static let buf: [2048]u8 = [0...]; return match (err) { err: io::error => io::errstr(err), - s: syntax => fmt::bsprintf(buf, "Syntax error @{}:{},{}: {}", + s: syntax => fmt::bsprintf(buf, "{}:{},{}: Syntax error: {}", s.0.path, s.0.line, s.0.col, s.1), }; };