Remove anchors only when they were added before.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 17 Apr 2012 08:42:00 +0000 (10:42 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 17 Apr 2012 08:42:00 +0000 (10:42 +0200)
parser.c

index 4784f8a..73b0209 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -6868,9 +6868,10 @@ static expression_t *parse_noop_expression(void)
                if (token.kind != ')') do {
                        (void)parse_assignment_expression();
                } while (next_if(','));
+
+               rem_anchor_token(',');
+               rem_anchor_token(')');
        }
-       rem_anchor_token(',');
-       rem_anchor_token(')');
        expect(')', end_error);
 
 end_error: