]> granicus.if.org Git - yasm/commitdiff
* nasm-token.re: Add support for the 777o form of octal numbers supported in
authorPeter Johnson <peter@tortall.net>
Wed, 8 Mar 2006 06:42:01 +0000 (06:42 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 8 Mar 2006 06:42:01 +0000 (06:42 -0000)
recent NASM versions.

svn path=/trunk/yasm/; revision=1414

modules/parsers/nasm/nasm-token.re

index e06ec2c8a57873abd67d5cefa30a00559350202a..e8e9fa43bd94a2b43ca9091add41efe99413baa4 100644 (file)
@@ -197,9 +197,9 @@ scan:
            RETURN(INTNUM);
        }
 
-       /* 777q - octal number */
-       octdigit+ 'q' {
-           s->tok[TOKLEN-1] = '\0'; /* strip off 'q' */
+       /* 777q or 777o - octal number */
+       octdigit+ [qQoO] {
+           s->tok[TOKLEN-1] = '\0'; /* strip off 'q' or 'o' */
            lvalp->intn = yasm_intnum_create_oct(s->tok, cur_line);
            RETURN(INTNUM);
        }