Allow CLIF lexer to properly identify NaN and Inf keywords
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user