Report illegal tokens in the Yul parser.

This commit is contained in:
chriseth
2020-12-16 12:20:07 +01:00
parent 17293858c0
commit 5c40fb060c
5 changed files with 7 additions and 4 deletions
+3
View File
@@ -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.");
}