From 92f1c9d4929538b72b97981f67e8999717a35e01 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 18 Nov 2016 03:15:24 +0000 Subject: Properly define the pragma directive in the grammar --- libsolidity/grammar.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsolidity/grammar.txt') 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 ';' -- cgit