ConsenSysMesh / solidity-parser

Solidity Parser in Javascript
137 stars 53 forks source link

SyntaxError on imports parsing a contract with a commented out function #7

Closed chatch closed 8 years ago

chatch commented 8 years ago

/usr/local/lib/node_modules/truffle/node_modules/solidity-parser/index.js:39 throw e; ^ SyntaxError: Expected "{", "}", any character, comment, end of line or whitespace but end of input found. Line: 14, Column: 1 at peg$buildException (/usr/local/lib/node_modules/truffle/node_modules/solidity-parser/build/imports_parser.js:423:14) at Object.peg$parse as parse at Object.module.exports.parse (/usr/local/lib/node_modules/truffle/node_modules/solidity-parser/index.js:34:23) at /usr/local/lib/node_modules/truffle/lib/profiler.js:137:36 at tryToString (fs.js:455:3) at FSReqWrap.readFileAfterClose as oncomplete

To reproduce see gist here https://gist.github.com/chatch/ce72f4e8c62d24fe3d9b656a9e93177e.

run 'node parse.js' or if inside a truffle project run 'truffle compile' to reproduce.