forked from lightscript/babylon-lightscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Description
Input Code
if a: {x} else by = if a: {x} else bCurrent Behavior
if (a) {
x;
} else b;Parsing error: Unexpected token, expected :
Expected Behavior
There should be consistency in whether this is legal syntax or not.
Resolution
Mixing {} and single-statement blocks should be legal as it is in JS. Mixing whiteblocks with any other type of blocks should be illegal.
Reactions are currently unavailable