Code: Select all
main() {
{+++code+++}
log("test");
}
syntax error, unexpected MANIASCRIPT_BRACKET_CURLY_OP
Putting a statement above (like move the log a line up) works. Without the braces it of course works as well.
(It occured to me with labels but holds true for any code block)
It happens with the scoped statement ("{"+StatementList+"}") as first statement in any kind of statement list, e.g. function bodies or other scoped statements.
That was a lot of statements o_o
greetz