LiveScript
LiveScript copied to clipboard
`case then if Expr then Expr` screws up in a `switch`
switch 0
case 1 then if 2 then 3
compiles to
switch (0) {
case 1:
if (2) {
3;
}
}
while
switch 0
case 1 then if 2 then 3
case 4 then 5
errors
Parse error on line 2: Unexpected 'CASE'
but
switch 0
case 1 then
if 2 then 3
case 4 then 5
compiles to
switch (0) {
case 1:
if (2) {
3;
}
break;
case 4:
5;
}
(then after case 1 is optional; both works)
That's really just https://github.com/satyr/coco/issues/131, again.
#139