aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-06 00:56:38 +0800
committerChristian <c@ethdev.com>2014-11-06 00:56:38 +0800
commite30d3f8d539882376b29a1fe8f4bf6bcaf8c1762 (patch)
treea72e27aed0ed8acf667f332dbac2fd270581e9b3
parentf0c73b7a54cedfe2bad89ab992514ec31df0f926 (diff)
parent5dd8f3a9370bba0e06d9afb581fc96056288c88a (diff)
downloaddexon-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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Parser.cpp b/Parser.cpp
index 6ef6ebc3..276da072 100644
--- a/Parser.cpp
+++ b/Parser.cpp
@@ -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();