lang: lex: fix regular number characters not incrementing the token length
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user