aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/parse.c')
-rw-r--r--bootstrap/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/parse.c b/bootstrap/parse.c
index 0804a73..71e2a74 100644
--- a/bootstrap/parse.c
+++ b/bootstrap/parse.c
@@ -1295,7 +1295,7 @@ pstiswitch(struct parser *P, const struct expr *test) {
fatal(P, ex.span, "case expression has incorrect type");
vec_push(&es, ex);
if (!lexmatch(P, &tok, ',')) {
- lexexpect(P, TKkw_do);
+ lexexpect(P, ';');
break;
}
} while (!lexmatch(P, &tok, TKkw_do)) ;