aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Parser.cpp')
-rw-r--r--Parser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Parser.cpp b/Parser.cpp
index 74d6c982..0ad7bd7c 100644
--- a/Parser.cpp
+++ b/Parser.cpp
@@ -748,10 +748,9 @@ pair<vector<ASTPointer<Expression>>, vector<ASTPointer<ASTString>>> Parser::pars
expectToken(Token::LBRACE);
while (m_scanner->getCurrentToken() != Token::RBRACE)
{
+ ret.second.push_back(expectIdentifierToken());
expectToken(Token::COLON);
-
ret.first.push_back(parseExpression());
- ret.second.push_back(expectIdentifierToken());
if (m_scanner->getCurrentToken() == Token::COMMA)
expectToken(Token::COMMA);