0

Ending brace/parenthesis/quote should only appear if otherwise it would leave braces/parentheses/quotes unbalanced.

Tart Toter 7 years ago 0

Say I have code that looks like this:


function blah (arg, anotherarg)
 blah;
 blah;
}

And I type a single open brace at the end of the first line. What should happen is this:


function blah (arg, anotherarg) {
 blah;
 blah;
}


What does happen is this:


function blah (arg, anotherarg) { }
 blah;
 blah;
}