tccpp: Allow local labels to start with a dot

--
By by ... Detlef
This commit is contained in:
Detlef Riekenberg
2010-04-05 12:28:27 +02:00
parent 9ff7a0bc98
commit f740485a5a
2 changed files with 10 additions and 1 deletions

View File

@ -2279,6 +2279,12 @@ maybe_newline:
tok = TOK_PPNUM;
break;
case '.':
/* check first for a local label (.Lxx:) */
if (p[1] == 'L') {
/* fast case */
goto parse_ident_fast;
}
/* special dot handling because it can also start a number */
PEEKC(c, p);
if (isnum(c)) {