Skip to content

Commit af7fd88

Browse files
[Glint/Parser] Delimiters are hard, mmkay?
1 parent d4e870a commit af7fd88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/glint/parser.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ auto lcc::glint::Parser::ParseExpressionsUntil(lcc::glint::TokenKind until) -> R
410410

411411
auto lcc::glint::Parser::ParseExpressionList() -> Result<std::vector<Expr*>> {
412412
std::vector<Expr*> exprs;
413-
while (not At(Tk::Semicolon, Tk::Eof)) {
413+
while (not At(Tk::Semicolon, Tk::Eof, Tk::Else)) {
414414
if (+ConsumeExpressionSeparator(ExpressionSeparator::Soft)) continue;
415415

416416
auto expr = ParseExpr();

0 commit comments

Comments
 (0)