mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3382 from ethereum/julia-identifier-parser
Support some restricted tokens (return, byte, address) as identifier in Julia
This commit is contained in:
@@ -566,10 +566,16 @@ string Parser::expectAsmIdentifier()
|
||||
string name = currentLiteral();
|
||||
if (m_julia)
|
||||
{
|
||||
if (currentToken() == Token::Bool)
|
||||
switch (currentToken())
|
||||
{
|
||||
case Token::Return:
|
||||
case Token::Byte:
|
||||
case Token::Address:
|
||||
case Token::Bool:
|
||||
advance();
|
||||
return name;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (instructions().count(name))
|
||||
|
||||
Reference in New Issue
Block a user