How to search for line containing unclosed parenthesis.
/([^)]*$
works only for non-nested parenthesis.
If the closing parenthesis is present in the next lines, it should still be a match.
for example :
foo( bar, bar
bar, bar );
should be a match.