mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow splitting string literals into multiple parts
This commit is contained in:
@@ -120,7 +120,10 @@ void ObjectParser::parseData(Object& _containingObject)
|
||||
|
||||
YulString name = parseUniqueName(&_containingObject);
|
||||
|
||||
expectToken(Token::StringLiteral, false);
|
||||
if (currentToken() == Token::HexStringLiteral)
|
||||
expectToken(Token::HexStringLiteral, false);
|
||||
else
|
||||
expectToken(Token::StringLiteral, false);
|
||||
addNamedSubObject(_containingObject, name, make_shared<Data>(name, asBytes(currentLiteral())));
|
||||
advance();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user