Fixed up z80 port so that it works again
[fw/sdcc] / src / altlex.c
index 816b2fad5d8a5b81035bd20842115659eb850e39..6572164eebf6ccb8b4038f5af620c31da4f65816 100644 (file)
@@ -458,6 +458,14 @@ static int _yylex(void)
            *p++ = c;
            c = GETC();
        }
+       if (c == 'U' || c == 'u' || c == 'L' || c == 'l') {
+           *p++ = c;
+           c = GETC();
+       }
+       if (c == 'U' || c == 'u' || c == 'L' || c == 'l') {
+           *p++ = c;
+           c = GETC();
+       }
        *p = '\0';
        UNGETC(c);
        yylval.val = constVal(line);