Allow CLIF lexer to properly identify NaN and Inf keywords

This commit is contained in:
Andrew Brown
2019-10-28 13:21:43 -07:00
parent 7e32fa2731
commit e5a36e2c61
2 changed files with 10 additions and 3 deletions

View File

@@ -896,7 +896,7 @@ impl<'a> Parser<'a> {
I16 => consume!(ty, self.match_imm16("Expected a 16-bit integer")?),
I32 => consume!(ty, self.match_imm32("Expected a 32-bit integer")?),
I64 => consume!(ty, self.match_imm64("Expected a 64-bit integer")?),
F32 => consume!(ty, self.match_ieee32("Expected a 32-bit float...")?),
F32 => consume!(ty, self.match_ieee32("Expected a 32-bit float")?),
F64 => consume!(ty, self.match_ieee64("Expected a 64-bit float")?),
b if b.is_bool() => consume!(
ty,