This function is too complex and uses too many regexp searches for berry little bang. The logic is also too specific. Simply because the line ends in comma you align vertically the last paren? I would rather remove this logic altogether. 

BTW: I started reworking your code. I will propose a revision. Till then let's not work at the same time on it.