* src/SDCC.lex: fixed bug #1030549
authorepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 19 Sep 2004 17:01:25 +0000 (17:01 +0000)
committerepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 19 Sep 2004 17:01:25 +0000 (17:01 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3502 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCC.lex

index 20b19185a314188058ddf896c59ddf363b444e0f..9f001e7c8195b38844c5db1ff815c0f2cfbc79f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+       * src/SDCC.lex: fixed bug #1030549
+
 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
 
        * src/SDCCcse.h (struct cseDef),
index 3564dd7936beac2a4f0b74340f2275da8ffd9b30..098e36cddc148434f42363f130cf3d813b0b163f 100644 (file)
@@ -140,8 +140,8 @@ static int checkCurrFile(char *s);
 "_overlay"     { count(); TKEYWORD(OVERLAY); }
 {L}({L}|{D})*  { count(); return(check_type()); }
 0[xX]{H}+{IS}? { count(); yylval.val = constVal(yytext); return(CONSTANT); }
-0{D}+{IS}?     { count(); yylval.val = constVal(yytext); return(CONSTANT); }
-{D}+{IS}?      { count(); yylval.val = constVal(yytext); return(CONSTANT); }
+0[0-7]*{IS}?     { count(); yylval.val = constVal(yytext); return(CONSTANT); }
+[1-9]{D}*{IS}?      { count(); yylval.val = constVal(yytext); return(CONSTANT); }
 '(\\.|[^\\'])+' { count();yylval.val = charVal (yytext); return(CONSTANT); /* ' make syntax highliter happy */ }
 {D}+{E}{FS}?   { count(); yylval.val = constFloatVal(yytext);return(CONSTANT); }
 {D}*"."{D}+({E})?{FS}?  { count(); yylval.val = constFloatVal(yytext);return(CONSTANT); }