aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/parse.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-04 16:34:55 +0200
committerlemon <lsof@mailbox.org>2022-08-04 16:34:55 +0200
commit4b2451500b8f085321a041ebc13761a5102f0e6d (patch)
treeb44d3c80a76aa309881383edda0a56958805d7bf /bootstrap/parse.c
parentd104761e3c213504f5a6dfb63059fc905fe6799f (diff)
case ;
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)) ;