In #544, I fixed it for all the cases but didn't check for else :( Fixes #1161
27 lines
234 B
JavaScript
27 lines
234 B
JavaScript
if (1)
|
|
// comment
|
|
{
|
|
false
|
|
}
|
|
// comment
|
|
else if (2)
|
|
true
|
|
// multi
|
|
// ple
|
|
// lines
|
|
else if (3)
|
|
// existing comment
|
|
true
|
|
// okay?
|
|
else if (4) {
|
|
// empty with existing comment
|
|
}
|
|
// comment
|
|
else {
|
|
}
|
|
|
|
if (1)
|
|
{}
|
|
else // comment
|
|
{}
|