mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix tokenizer for 0i #658
This commit is contained in:
+1
-6
@@ -718,13 +718,8 @@ Token scan_number_to_token(Tokenizer *t, bool seen_decimal_point) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
seen_decimal_point = false;
|
|
||||||
scan_mantissa(t, 10);
|
scan_mantissa(t, 10);
|
||||||
|
goto fraction;
|
||||||
if (t->curr_rune == '.' || t->curr_rune == 'e' || t->curr_rune == 'E') {
|
|
||||||
seen_decimal_point = true;
|
|
||||||
goto fraction;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
goto end;
|
goto end;
|
||||||
|
|||||||
Reference in New Issue
Block a user