Skip to content

Commit

Permalink
include EOS for semicolon terminator for PragmaStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
duaraghav8@gmail committed Nov 5, 2016
1 parent 72703d3 commit 62332e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 16 additions & 4 deletions build/parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion solidity-parser.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ IfStatement
}

PragmaStatement
= PragmaToken __ SolidityToken __ isUpwardCompatible:("^" / "") version:VersionLiteral {
= PragmaToken __ SolidityToken __ isUpwardCompatible:("^" / "") version:VersionLiteral __ EOS {
return {
type: "PragmaStatement",
version: version,
Expand Down

0 comments on commit 62332e6

Please sign in to comment.