1 parent d4e870a commit af7fd88Copy full SHA for af7fd88
1 file changed
lib/glint/parser.cc
@@ -410,7 +410,7 @@ auto lcc::glint::Parser::ParseExpressionsUntil(lcc::glint::TokenKind until) -> R
410
411
auto lcc::glint::Parser::ParseExpressionList() -> Result<std::vector<Expr*>> {
412
std::vector<Expr*> exprs;
413
- while (not At(Tk::Semicolon, Tk::Eof)) {
+ while (not At(Tk::Semicolon, Tk::Eof, Tk::Else)) {
414
if (+ConsumeExpressionSeparator(ExpressionSeparator::Soft)) continue;
415
416
auto expr = ParseExpr();
0 commit comments