diff options
author | chriseth <chris@ethereum.org> | 2016-11-25 23:58:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-25 23:58:30 +0800 |
commit | d7677826d478efde1d9ded200fb40255aa082672 (patch) | |
tree | c04e2a261411977d43fdddcf0ec0028e24f54c7b | |
parent | 0933a4ff1a2c589c2289610d0d8f2758b53b77d8 (diff) | |
parent | 92f1c9d4929538b72b97981f67e8999717a35e01 (diff) | |
download | dexon-solidity-d7677826d478efde1d9ded200fb40255aa082672.tar.gz dexon-solidity-d7677826d478efde1d9ded200fb40255aa082672.tar.zst dexon-solidity-d7677826d478efde1d9ded200fb40255aa082672.zip |
Merge pull request #1395 from ethereum/grammar
Properly define the pragma directive in the grammar
-rw-r--r-- | libsolidity/grammar.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index c8bc3aed..0aa6690b 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -1,7 +1,7 @@ SourceUnit = (PragmaDirective | ImportDirective | ContractDefinition)* // Pragma actually parses anything up to the trailing ';' to be fully forward-compatible. -PragmaDirective = 'pragma' Identifier Expression ';' +PragmaDirective = 'pragma' Identifier ([^;]+) ';' ImportDirective = 'import' StringLiteral ('as' Identifier)? ';' | 'import' ('*' | Identifier) ('as' Identifier)? 'from' StringLiteral ';' |