From 9a9a71f0190e6a79bc3712a1adb8c935fe7e48ca Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 25 Apr 2012 09:01:50 +0200 Subject: [PATCH] Discard all non-anchors from the input, not just the first one. --- parser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(';'); -- 2.20.1