From: Christoph Mallon Date: Wed, 25 Apr 2012 07:01:50 +0000 (+0200) Subject: Discard all non-anchors from the input, not just the first one. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=9a9a71f0190e6a79bc3712a1adb8c935fe7e48ca;p=cparser Discard all non-anchors from the input, not just the first one. --- diff --git a/parser.c b/parser.c index 386eab2..200f5ae 100644 --- a/parser.c +++ b/parser.c @@ -10072,8 +10072,7 @@ static statement_t *intern_parse_statement(void) default: errorf(HERE, "unexpected token %K while parsing statement", &token); statement = create_error_statement(); - if (!at_anchor()) - next_token(); + eat_until_anchor(); break; } rem_anchor_token(';');