aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/parsing/Parser.cpp')
-rw-r--r--libsolidity/parsing/Parser.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index ffe2be83..b78c58c6 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -1558,6 +1558,30 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
case Token::IllegalHex:
fatalParserError("Expected even number of hex-nibbles within double-quotes.");
break;
+ case Token::IllegalCommentTerminator:
+ fatalParserError("Expected multi-line comment-terminator.");
+ break;
+ case Token::IllegalStringEscape:
+ fatalParserError("Invalid String Escape.");
+ break;
+ case Token::IllegalStringEndQuote:
+ fatalParserError("Expected String end-quote.");
+ break;
+ case Token::IllegalNumberSeparator:
+ fatalParserError("Invalid use of Number Separator '_'.");
+ break;
+ case Token::IllegalHexDigit:
+ fatalParserError("Hex Digit missing or invalid.");
+ break;
+ case Token::IllegalOctalNotAllowed:
+ fatalParserError("Octal Numbers not allowed.");
+ break;
+ case Token::IllegalExponent:
+ fatalParserError("Invalid Exponent.");
+ break;
+ case Token::IllegalNumberEnd:
+ fatalParserError("Digit or Identifier-Start not allowed at end of Number.");
+ break;
default:
if (TokenTraits::isElementaryTypeName(token))
{