Fix float ICE
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
This commit is contained in:
parent
3d789740b0
commit
5f6059d9a2
4 changed files with 29 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue