mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[TMP] Fix parsing for strings
This commit is contained in:
parent
7b06fba8fb
commit
4899b854d8
@ -1960,7 +1960,11 @@ ASTPointer<Expression> Parser::parseLiteral()
|
||||
case Token::TrueLiteral:
|
||||
case Token::FalseLiteral:
|
||||
case Token::Number:
|
||||
{
|
||||
nodeFactory.markEndPosition();
|
||||
advance();
|
||||
break;
|
||||
}
|
||||
case Token::StringLiteral:
|
||||
case Token::UnicodeStringLiteral:
|
||||
case Token::HexStringLiteral:
|
||||
@ -1981,8 +1985,6 @@ ASTPointer<Expression> Parser::parseLiteral()
|
||||
solAssert(false);
|
||||
break;
|
||||
}
|
||||
nodeFactory.markEndPosition();
|
||||
advance();
|
||||
|
||||
if (token == Token::Number && (
|
||||
TokenTraits::isEtherSubdenomination(m_scanner->currentToken()) ||
|
||||
|
Loading…
Reference in New Issue
Block a user