hare

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

commit c76ca93f01bdefc749be560c19ce606dda0871b1
parent c0efdf743c0d8ce2cbbb7fd1a1c8a6e1e43e1416
Author: Byron Torres <b@torresjrjr.com>
Date:   Mon, 30 Jan 2023 23:08:29 +0000

hare::lex: allow leading zeros in literals

Signed-off-by: Byron Torres <b@torresjrjr.com>

Diffstat:
Mhare/lex/lex.ha | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/hare/lex/lex.ha b/hare/lex/lex.ha @@ -422,10 +422,6 @@ fn lex_literal(lex: *lexer) (token | error) = { case 'x' => base = strconv::base::HEX; case => - if (ascii::isdigit(r.0)) { - return syntaxerr(loc, - "Leading zeros in number literals aren't permitted (for octal, use the 0o prefix instead)"); - }; started = true; unget(lex, r.0); };