mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Expose hex literal to the Yul parser
This allows nicer error messages.
This commit is contained in:
@@ -337,6 +337,9 @@ Parser::ElementaryOperation Parser::parseElementaryOperation()
|
||||
ret = std::move(literal);
|
||||
break;
|
||||
}
|
||||
case Token::HexStringLiteral:
|
||||
fatalParserError(3772_error, "Hex literals are not valid in this context.");
|
||||
break;
|
||||
default:
|
||||
fatalParserError(1856_error, "Literal or identifier expected.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user