mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Report illegal tokens in the Yul parser.
This commit is contained in:
@@ -327,6 +327,9 @@ variant<Literal, Identifier> Parser::parseLiteralOrIdentifier()
|
||||
case Token::HexStringLiteral:
|
||||
fatalParserError(3772_error, "Hex literals are not valid in this context.");
|
||||
break;
|
||||
case Token::Illegal:
|
||||
fatalParserError(1465_error, "Illegal token: " + to_string(m_scanner->currentError()));
|
||||
break;
|
||||
default:
|
||||
fatalParserError(1856_error, "Literal or identifier expected.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user