Add missing case for octal prefix

This commit is contained in:
mtarik34b
2025-11-03 22:20:21 +01:00
parent a414061998
commit 7738f4ef9a

View File

@@ -341,8 +341,10 @@ scan_number :: proc(s: ^Scanner, ch: rune, seen_dot: bool) -> (rune, rune) {
case 'x':
ch = advance(s)
base, prefix = 16, 'x'
case:
case 'o':
ch = advance(s)
base, prefix = 8, 'o'
case:
digsep = 1 // Leading zero
}
} else {