forgot octals exist

This commit is contained in:
koniifer 2024-09-01 18:45:38 +01:00
parent 781c40ede0
commit 27462d9a33

View file

@ -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();