From 4b2451500b8f085321a041ebc13761a5102f0e6d Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 4 Aug 2022 16:34:55 +0200 Subject: case ; --- bootstrap/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap/parse.c') 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)) ; -- cgit v1.2.3