lang: lex: fix regular number characters not incrementing the token length

This commit is contained in:
2024-11-21 20:05:13 +00:00
parent 2d89db48d2
commit 90f96b6229

View File

@@ -874,6 +874,7 @@ static enum ivy_status read_number(struct ivy_lexer *lex)
char s[] = {c, 0};
b_string_append_cstr(str, s);
advance(lex);
token_len++;
}
if (token_len == 1 && base == 7) {