aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-05-24 21:43:36 +0100
committergingerBill <bill@gingerbill.org>2020-05-24 21:43:36 +0100
commitd6bcc25b6965e099313fdc45d0be971cd70d7a18 (patch)
treee86c9e143915bc69ba93d2fe0a9a279c7ae6c62a /src
parenta2c50d3666660304a46352905eee3bd90eb4ffe2 (diff)
Fix tokenizer for `0i` #658
Diffstat (limited to 'src')
-rw-r--r--src/tokenizer.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp
index c9a58cee6..e07071a27 100644
--- a/src/tokenizer.cpp
+++ b/src/tokenizer.cpp
@@ -718,13 +718,8 @@ Token scan_number_to_token(Tokenizer *t, bool seen_decimal_point) {
}
} else {
- seen_decimal_point = false;
scan_mantissa(t, 10);
-
- if (t->curr_rune == '.' || t->curr_rune == 'e' || t->curr_rune == 'E') {
- seen_decimal_point = true;
- goto fraction;
- }
+ goto fraction;
}
goto end;