]> granicus.if.org Git - yasm/commitdiff
Fix so "0h" works.
authorPeter Johnson <peter@tortall.net>
Sat, 1 Dec 2001 09:20:49 +0000 (09:20 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 1 Dec 2001 09:20:49 +0000 (09:20 -0000)
svn path=/trunk/yasm/; revision=369

modules/parsers/nasm/token.l.in
src/parsers/nasm/token.l.in

index a3b086e1fae535f409f73f2635ffac328f0c0b74..2193cec68a4e91744997318ff9d270e73ea9faa9 100644 (file)
@@ -100,7 +100,7 @@ WS       [ \t\r]
 }
 
     /* 0AAh form of hexidecimal number */
-{DIGIT}{HEXDIGIT}+h {
+{DIGIT}{HEXDIGIT}*h {
     yytext[strlen(yytext)-1] = '\0';  /* strip off 'h' */
     yylval.intn = intnum_new_hex(yytext);
     return INTNUM;
index a3b086e1fae535f409f73f2635ffac328f0c0b74..2193cec68a4e91744997318ff9d270e73ea9faa9 100644 (file)
@@ -100,7 +100,7 @@ WS       [ \t\r]
 }
 
     /* 0AAh form of hexidecimal number */
-{DIGIT}{HEXDIGIT}+h {
+{DIGIT}{HEXDIGIT}*h {
     yytext[strlen(yytext)-1] = '\0';  /* strip off 'h' */
     yylval.intn = intnum_new_hex(yytext);
     return INTNUM;