hare

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

commit 4bfeb3d566e887a0516ca69d41a5effbb38d2fb0
parent 37bec9536e154779f844ec17e6f069bdbd857b22
Author: Bor Grošelj Simić <bgs@turminal.net>
Date:   Tue,  7 Feb 2023 23:13:17 +0100

hare::lex: fix reported syntax error reason

Signed-off-by: Bor Grošelj Simić <bgs@turminal.net>

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 @@ -614,7 +614,7 @@ fn lex_literal(lex: *lexer) (token | error) = { case strconv::invalid => abort(); // Shouldn't be lexed in case strconv::overflow => - return syntaxerr(loc, "overflow in exponent"); + return syntaxerr(loc, "literal overflow"); }; line_comment(lex)?;