eat() the ':' token of a label statement instead of expect()ing it, because the looka...
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 11 Dec 2007 19:11:50 +0000 (19:11 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 11 Dec 2007 19:11:50 +0000 (19:11 +0000)
[r18674]

parser.c

index 1fc7cea..24f0a18 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -4847,7 +4847,7 @@ static statement_t *parse_label_statement(void)
        label_statement->statement.source_position = token.source_position;
        label_statement->label                     = label;
 
-       expect(':');
+       eat(':');
 
        if(token.type == '}') {
                /* TODO only warn? */