aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/parse.c b/bootstrap/parse.c
index c018262..0abaf45 100644
--- a/bootstrap/parse.c
+++ b/bootstrap/parse.c
@@ -2121,7 +2121,7 @@ pstiswitch(struct parser *P, const struct expr *test) {
lexexpect(P, ';');
break;
}
- } while (!lexmatch(P, &tok, TKkw_do)) ;
+ } while (!lexmatch(P, &tok, ';')) ;
vec_slice_cpy(&c.es, &es);
c.t = parseblock0(P);
vec_push(&cs, c);