diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-06-01 14:00:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-01 14:00:54 -0400 |
| commit | f6932472950e7dbb451d4cfef8e5f4a1cc506ac0 (patch) | |
| tree | 986353a4f281ca362f48e9aec31af691d85c8019 /src/stage1/tokenizer.cpp | |
| parent | d496400cff8b025dea262a9544e1b20482233089 (diff) | |
| parent | abd1c75c4aa70a83884e0509820dff8a6e51430c (diff) | |
| download | zig-f6932472950e7dbb451d4cfef8e5f4a1cc506ac0.tar.gz zig-f6932472950e7dbb451d4cfef8e5f4a1cc506ac0.zip | |
Merge pull request #8917 from ifreund/fix-float-tokenize2
stage1, stage2: disallow 1.e9 and 0x1.p9 as float literals
Diffstat (limited to 'src/stage1/tokenizer.cpp')
| -rw-r--r-- | src/stage1/tokenizer.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/stage1/tokenizer.cpp b/src/stage1/tokenizer.cpp index 4550f32e8c..f10579c966 100644 --- a/src/stage1/tokenizer.cpp +++ b/src/stage1/tokenizer.cpp @@ -1286,10 +1286,6 @@ void tokenize(const char *source, Tokenization *out) { t.column -= 1; t.state = TokenizeState_start; continue; - case 'e': - case 'E': - t.state = TokenizeState_float_exponent_unsigned; - break; case DIGIT: t.state = TokenizeState_float_fraction_dec; break; @@ -1308,10 +1304,6 @@ void tokenize(const char *source, Tokenization *out) { t.column -= 1; t.state = TokenizeState_start; continue; - case 'p': - case 'P': - t.state = TokenizeState_float_exponent_unsigned; - break; case HEXDIGIT: t.out->ids.last() = TokenIdFloatLiteral; t.state = TokenizeState_float_fraction_hex; |
