diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-12-12 23:45:17 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-12-18 23:02:35 +0800 |
commit | c2ec6d71b4707dab9b7727347077904b7a90eaf2 (patch) | |
tree | e53763da22d68f1b97a5390f07c4d09c633baefa /libsolidity/analysis | |
parent | c60ec958abea4f63eea8783d67a5054ca04d0a64 (diff) | |
download | dexon-solidity-c2ec6d71b4707dab9b7727347077904b7a90eaf2.tar.gz dexon-solidity-c2ec6d71b4707dab9b7727347077904b7a90eaf2.tar.zst dexon-solidity-c2ec6d71b4707dab9b7727347077904b7a90eaf2.zip |
Add version pragma parsing to Parser
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/SyntaxChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/SyntaxChecker.cpp b/libsolidity/analysis/SyntaxChecker.cpp index 12e14864..066b5004 100644 --- a/libsolidity/analysis/SyntaxChecker.cpp +++ b/libsolidity/analysis/SyntaxChecker.cpp @@ -114,7 +114,7 @@ bool SyntaxChecker::visit(PragmaDirective const& _pragma) vector<string> literals(_pragma.literals().begin() + 1, _pragma.literals().end()); SemVerMatchExpressionParser parser(tokens, literals); auto matchExpression = parser.parse(); - SemVerVersion currentVersion{string(VersionString)}; + static SemVerVersion const currentVersion{string(VersionString)}; if (!matchExpression.matches(currentVersion)) m_errorReporter.syntaxError( _pragma.location(), |