ref: 5262bed1d0a0f153c7c4103d059ac9e7f955bc11
parent: 57813d7182bbe8320407b6722a4093d3bf4f8dcd
author: Ori Bernstein <[email protected]>
date: Mon Nov 5 10:41:28 EST 2012
Add support for octal numbers. As ugly as they are, they're still useful for Unix permissions. At least it's now hard to use them accidentally -- They use '0oNUMBER' syntax, to be symmetrical with '0b' and '0x'.
--- a/parse/tok.c
+++ b/parse/tok.c
@@ -546,6 +546,8 @@
t = number(16);
else if (match('b'))
t = number(2);
+ else if (match('o'))
+ t = number(8);
else
t = number(10);
} else {