Rewrote the regex for matching Objective-C interface and implementation methods