Wrong indentation in switch statement.
take-cheeze opened this issue · comments
Takeshi Watanabe commented
I expected the indentation of switch statement to be like
switch(type) {
case "string":
string_func();
break;
case "number":
number_func();
break;
case "array":
array_func();
break;
}
but in js3-mode I get
switch(type) {
case "string":
string_func();
break;
case "number":
number_func();
break;
case "array":
array_func();
break;
}
Is there way to fix this?
Tamzin Blake commented
That one always surprises me. Really, there are two issues here - a bug that currently case statement bodies don't get indented, and a feature that case statements can optionally not be indented under switch.
Tamzin Blake commented