Fix float ICE

Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
This commit is contained in:
threadexception 2021-11-15 17:46:44 +01:00
parent 3d789740b0
commit 5f6059d9a2
4 changed files with 29 additions and 1 deletions

View file

@ -1032,6 +1032,8 @@ impl<'a> Parser<'a> {
[IdentLike(_), Punct('+' | '-')] |
// 1e+2 | 1e-2
[IdentLike(_), Punct('+' | '-'), IdentLike(_)] |
// 1.2e+ | 1.2e-
[IdentLike(_), Punct('.'), IdentLike(_), Punct('+' | '-')] |
// 1.2e+3 | 1.2e-3
[IdentLike(_), Punct('.'), IdentLike(_), Punct('+' | '-'), IdentLike(_)] => {
// See the FIXME about `TokenCursor` above.