aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-02-04 04:45:16 +0800
committerGav Wood <i@gavwood.com>2015-02-04 04:45:16 +0800
commitdb263bd9d751f69f9d8d9484ff916d38b86c68c4 (patch)
treecb78389c993932092082f6753c30b8303e5ef0a2
parent2ff4a80b6266a6bcd22ef6cbb654f90fc84f9276 (diff)
downloaddexon-solidity-db263bd9d751f69f9d8d9484ff916d38b86c68c4.tar
dexon-solidity-db263bd9d751f69f9d8d9484ff916d38b86c68c4.tar.gz
dexon-solidity-db263bd9d751f69f9d8d9484ff916d38b86c68c4.tar.bz2
dexon-solidity-db263bd9d751f69f9d8d9484ff916d38b86c68c4.tar.lz
dexon-solidity-db263bd9d751f69f9d8d9484ff916d38b86c68c4.tar.xz
dexon-solidity-db263bd9d751f69f9d8d9484ff916d38b86c68c4.tar.zst
dexon-solidity-db263bd9d751f69f9d8d9484ff916d38b86c68c4.zip
Fixes.
-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);