From: Peter Johnson Date: Wed, 8 Mar 2006 06:42:01 +0000 (-0000) Subject: * nasm-token.re: Add support for the 777o form of octal numbers supported in X-Git-Tag: v0.5.0rc2~5^2~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=840d4b024e9e25199b105a972b5eab285033e0bb;p=yasm * nasm-token.re: Add support for the 777o form of octal numbers supported in recent NASM versions. svn path=/trunk/yasm/; revision=1414 --- diff --git a/modules/parsers/nasm/nasm-token.re b/modules/parsers/nasm/nasm-token.re index e06ec2c8..e8e9fa43 100644 --- a/modules/parsers/nasm/nasm-token.re +++ b/modules/parsers/nasm/nasm-token.re @@ -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); }