diff --git a/hblang/src/lexer.rs b/hblang/src/lexer.rs index 8f36d695..984451b1 100644 --- a/hblang/src/lexer.rs +++ b/hblang/src/lexer.rs @@ -304,6 +304,12 @@ impl<'a> Lexer<'a> { } T::Number } + b'0' if self.advance_if(b'o') => { + while let Some(b'0'..=b'9') = self.peek() { + self.advance(); + } + T::Number + } b'0'..=b'9' => { while let Some(b'0'..=b'9') = self.peek() { self.advance();