From 840d4b024e9e25199b105a972b5eab285033e0bb Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Wed, 8 Mar 2006 06:42:01 +0000 Subject: [PATCH] * nasm-token.re: Add support for the 777o form of octal numbers supported in recent NASM versions. svn path=/trunk/yasm/; revision=1414 --- modules/parsers/nasm/nasm-token.re | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.40.0