Re: [PATCH] Teach git diff about Objective-C syntax
On Wed, Sep 17, 2008 at 12:21:37AM +0100, Jonathan del Strother <jon.delStrother@bestbefore.tv> wrote:
Show 5 quoted lines
> + { "objc", "^[\t ]*\\([-+][\t ]*([\t ]*[A-Za-z_][A-Za-z_0-9]*.*).*\\)$" // Objective-C methods
> + "\\|"
> + "^[\t ]*\\(\\([\t ]*[A-Za-z_][A-Za-z_0-9]*\\)\\{2,\\}[\t ]*([^;]*\\)$" // C functions
> + "\\|"
> + "^@\\(implementation\\|interface\\|protocol\\).*" // Objective-C class/protocol definitionsPlease avoid C++-style comments. Just use /* */.
Thanks.