diff options
author | Christian <c@ethdev.com> | 2014-11-06 00:56:38 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-11-06 00:56:38 +0800 |
commit | e30d3f8d539882376b29a1fe8f4bf6bcaf8c1762 (patch) | |
tree | a72e27aed0ed8acf667f332dbac2fd270581e9b3 | |
parent | f0c73b7a54cedfe2bad89ab992514ec31df0f926 (diff) | |
parent | 5dd8f3a9370bba0e06d9afb581fc96056288c88a (diff) | |
download | dexon-solidity-e30d3f8d539882376b29a1fe8f4bf6bcaf8c1762.tar dexon-solidity-e30d3f8d539882376b29a1fe8f4bf6bcaf8c1762.tar.gz dexon-solidity-e30d3f8d539882376b29a1fe8f4bf6bcaf8c1762.tar.bz2 dexon-solidity-e30d3f8d539882376b29a1fe8f4bf6bcaf8c1762.tar.lz dexon-solidity-e30d3f8d539882376b29a1fe8f4bf6bcaf8c1762.tar.xz dexon-solidity-e30d3f8d539882376b29a1fe8f4bf6bcaf8c1762.tar.zst dexon-solidity-e30d3f8d539882376b29a1fe8f4bf6bcaf8c1762.zip |
Merge remote-tracking branch 'ethereum/develop' into HEAD
Conflicts:
libsolidity/Compiler.cpp
test/solidityCompiler.cpp
-rw-r--r-- | Parser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -290,10 +290,10 @@ ASTPointer<Statement> Parser::parseStatement() // We have a variable definition if we get a keyword that specifies a type name, or // in the case of a user-defined type, we have two identifiers following each other. if (m_scanner->getCurrentToken() == Token::MAPPING || - m_scanner->getCurrentToken() == Token::VAR || - Token::isElementaryTypeName(m_scanner->getCurrentToken()) || - (m_scanner->getCurrentToken() == Token::IDENTIFIER && - m_scanner->peekNextToken() == Token::IDENTIFIER)) + m_scanner->getCurrentToken() == Token::VAR || + ((Token::isElementaryTypeName(m_scanner->getCurrentToken()) || + m_scanner->getCurrentToken() == Token::IDENTIFIER) && + m_scanner->peekNextToken() == Token::IDENTIFIER)) statement = parseVariableDefinition(); else // "ordinary" expression statement statement = parseExpressionStatement(); |