While trying to figure out how to handle both MemberExpression comments and IfStatement comments, I ended up doing this one as well... Sorry @yamafaktory :( The logic is a bit annoying but works. Fixes #487
22 lines
204 B
JavaScript
22 lines
204 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 {
|
|
}
|