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:
1 parent
200a92b40e
commit
4a1e85436b
15 files changed
+76
-6
No files matched your search
@@ -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