Discard all non-anchors from the input, not just the first one.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 25 Apr 2012 07:01:50 +0000 (09:01 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 26 Apr 2012 07:57:52 +0000 (09:57 +0200)
parser.c

index 386eab2..200f5ae 100644 (file)
--- 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(';');