I'm having a syntax error in VS Code in the parts where I emit events using new notation for Solidity v0.4.21.
Remix doesn’t raise any errors, though.
My User Settings in VS Code contain "solidity.compileUsingRemoteVersion": "latest"
, and compiler doesn't raise error on emit
itself, rather gives this message:
Syntax error: Expected "!=", "%", "%=", "&", "&&", "&=", "*", "*=", "+", "++", "+=", ",", "-", "--", "-=", "/", "/*", "/=", ";", "<", "<<", "<<=", "<=", "=", "==", ">", ">=", ">>", ">>=", ">>>", "?", "^", "^=", "|", "|=", "||", comment, end of line, or whitespace but "(" found.
Here's how it looks like (2nd emit event is ok for some reason):