We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
'e'
1 parent 843310a commit 93ad690Copy full SHA for 93ad690
compiler/qsc_qasm3/src/lex/raw.rs
@@ -373,7 +373,7 @@ impl<'a> Lexer<'a> {
373
Err(NumberLexError::Incomplete) => unreachable!(),
374
}
375
376
- Some('e') => match self.exp() {
+ Some('e' | 'E') => match self.exp() {
377
Ok(()) => Ok(Number::Float),
378
Err(NumberLexError::None) => unreachable!("we know there is an `e`"),
379
Err(NumberLexError::Incomplete) => {
@@ -419,7 +419,7 @@ impl<'a> Lexer<'a> {
419
self.chars.next();
420
self.mid_dot(c1)
421
422
423
424
Err(NumberLexError::None) => unreachable!(),
425
Err(_) => Err(NumberLexError::EndsInUnderscore),
0 commit comments