hare

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

commit 2677fd899d88fbd919c0cb9f60c8b800998d4347
parent ec8cd146e8397e68375365c2c248375080ee2d4c
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 19 Apr 2021 18:08:36 -0400

hare::lex: fix i, u literal suffixes

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

diff --git a/hare/lex/lex.ha b/hare/lex/lex.ha @@ -389,13 +389,13 @@ fn lex_literal(lex: *lexer, loc: location) (token | error) = { else if (suff == "u16") ltok::LIT_U16 else if (suff == "u32") ltok::LIT_U32 else if (suff == "u64") ltok::LIT_U64 - else if (suff == "uint") ltok::LIT_UINT + else if (suff == "u") ltok::LIT_UINT else if (suff == "z") ltok::LIT_SIZE else if (suff == "i8") ltok::LIT_I8 else if (suff == "i16") ltok::LIT_I16 else if (suff == "i32") ltok::LIT_I32 else if (suff == "i64") ltok::LIT_I64 - else if (suff == "int") ltok::LIT_INT + else if (suff == "i") ltok::LIT_INT else if (suff == "" && !float) ltok::LIT_ICONST else if (suff == "f32") ltok::LIT_F32 else if (suff == "f64") ltok::LIT_F64