From 950da62289b0dd33627d880af5c1deb55b86bdd4 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 29 Sep 2012 19:13:47 +0200 Subject: [PATCH] parser::parse_global(): break after seeing a termination token. The code would swallow the terminating token and then inspect whether it was a ','. Which it obviously wasn't since we had just seen that it was a ';'. --- parse.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parse.cxx b/parse.cxx index f4604477b..1c3147149 100644 --- a/parse.cxx +++ b/parse.cxx @@ -2108,7 +2108,10 @@ parser::parse_global (vector & globals, vector&) } if (t && t->type == tok_operator && t->content == ";") // termination + { swallow (); + break; + } if (t && t->type == tok_operator && t->content == ",") // next global { -- 2.43.5