diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp index cfcd631..b7c3a72 100644 --- a/src/Parser/Parser.cpp +++ b/src/Parser/Parser.cpp @@ -596,7 +596,7 @@ namespace Porygon::Parser { auto firstItem = this->ParseStatement(this->Next()); // If the first item is an expression, and is followed by a comma, we're dealing with a simple {1, 2, 3} kind of array if (firstItem->GetKind() == ParsedStatementKind::Expression && - (this->Peek()->GetKind() == TokenKind::CommaToken)) { + (this->Peek()->GetKind() == TokenKind::CommaToken || this->Peek()->GetKind() == TokenKind::CloseCurlyBracket)) { auto statement = dynamic_cast(firstItem); auto expr = statement->GetExpression(); statement->NullifyExpression();