From dea68bafe81c40adf29e45630cfeceb97b91a630 Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 30 Aug 2022 10:41:16 +0200 Subject: Makefile and such --- src/parse.cff | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/parse.cff') diff --git a/src/parse.cff b/src/parse.cff index aad88d1..dbc8e29 100644 --- a/src/parse.cff +++ b/src/parse.cff @@ -3014,7 +3014,11 @@ fn parsedecls(P *Parser, loc Loc, yield DeclYielder, yarg *void, toplevel bool) } } + switch { + case lexmatch(P, &tok, ';') or lexmatch(P, &tok, :eof); + // no-op + case lexmatch(P, &tok, :kw_fn); let name = lexmatch(P, &tok, :ident) ? tok.u.ident : #null; decl = parsefn(P, tok.loc, toplevel, externp, name); -- cgit v1.2.3