Fix macro call parsing.

Function ends at the last closing parenthesis, so that parameters
can have parenthesis.