Upon typing:
$var = array(
Sublime automatically adds the closing parenthesis:
$var = array()
Your cursor will still be between both parentheses.
Now, if you hit enter at this point, Sublime makes:
$var = array(
<cursor>)
This is wrong. It should put the closing parenthesis on another new line, at the same indentation as the original line. E.g.:
$var = array(
<cursor>
)
In other words, it should behave pretty much the same like it does with curly brackets (as for an if-statement for example).
Since I have to make a lot of associative arrays like this, it’s really a pain to have to re-indent it manually every time:
$var = array(
'blah' => 'blah',
'blah' => 'blah',
'blah' => 'blah',
'blah' => 'blah',
);