Closed D-Nice closed 7 years ago
A contract having any string containing a curly brace causes the parser to break, and stops any compilation.
Add
string break = "}";
to any contract
To compile just fine, as with solc and browser-solidity.
SyntaxErrors
SyntaxError: Expected "contract", "import", "library", "pragma", "using", comment, end of input, end of line or whitespace but "\"" found.
or
SyntaxError: Expected "{", "}", any character, comment, end of line or whitespace but end of input found.
Previously mentioned on https://github.com/ConsenSys/truffle/issues/309#issuecomment-265824189
Issue
A contract having any string containing a curly brace causes the parser to break, and stops any compilation.
Steps to Reproduce
Add
to any contract
Expected Behavior
To compile just fine, as with solc and browser-solidity.
Actual Results
SyntaxErrors
or
Environment
Previously mentioned on https://github.com/ConsenSys/truffle/issues/309#issuecomment-265824189