Tweaked function pattern to support multi-line signatures and match blocks and Obj-C objects in return type.