diff options
author | Lazaridis <info@lazaridis.com> | 2018-10-01 05:27:16 +0800 |
---|---|---|
committer | Lazaridis <info@lazaridis.com> | 2018-10-09 11:51:19 +0800 |
commit | 4bcd89105cf294d65443cbc7bfe2aaffd571f6d3 (patch) | |
tree | 3f1b5075448b1345ab84e2bb2a1397a7278ed72d /libsolidity/parsing/Parser.cpp | |
parent | 4ab2e03be3e5550a68a2fcf1608cdcb942dd8957 (diff) | |
download | dexon-solidity-4bcd89105cf294d65443cbc7bfe2aaffd571f6d3.tar.gz dexon-solidity-4bcd89105cf294d65443cbc7bfe2aaffd571f6d3.tar.zst dexon-solidity-4bcd89105cf294d65443cbc7bfe2aaffd571f6d3.zip |
provide general hex-literal error message, fixes #1802
dummy
Diffstat (limited to 'libsolidity/parsing/Parser.cpp')
-rw-r--r-- | libsolidity/parsing/Parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index 1228b833..b390459a 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -1554,6 +1554,9 @@ ASTPointer<Expression> Parser::parsePrimaryExpression() expression = nodeFactory.createNode<TupleExpression>(components, isArray); break; } + case Token::IllegalHex: + fatalParserError("Expected even number of hex-nibbles within double-quotes."); + break; default: if (Token::isElementaryTypeName(token)) { |