Say I’m editing a document and I enter an opening bracket and hit enter. The closing bracket will show up automagically on the line below my cursor with proper indentation. If I do the same with an open parentheses, the closing parentheses will show up but at my cursor, not on the next line with proper indentation. Is this the expected behavior or is it a bug?
The pipe shows my cursor:
myfunction() {
|
}
$foo = array(
|)