From ad3428d8f54438f686ccd199d869534b9533bacd Mon Sep 17 00:00:00 2001 From: Stowy Date: Fri, 19 Jan 2024 12:27:59 +0100 Subject: [PATCH] Fixed `0..size` being taken as a numeric token --- src/txti/txti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/txti/txti.c b/src/txti/txti.c index fa0dfd82e..2376d1c2a 100644 --- a/src/txti/txti.c +++ b/src/txti/txti.c @@ -533,7 +533,7 @@ txti_token_array_from_string__rust(Arena *arena, U64 *bytes_processed_counter, S }break; case TXTI_TokenKind_Numeric: { - ender_found = (!char_is_alpha(byte) && !char_is_digit(byte, 10) && byte != '_' && byte != '.'); + ender_found = (!char_is_alpha(byte) && !char_is_digit(byte, 10) && byte != '_' && (byte != '.' || next_byte == '.')); }break; case TXTI_TokenKind_String: {