From: Johannes Schindelin Date: Wed, 17 Sep 2008 11:06:18 GMT Subject: Re: [PATCH] Teach git diff about Objective-C syntax Message-ID: In-Reply-To: <1221648564-56239-1-git-send-email-jon.delStrother@bestbefore.tv> Hi, On Wed, 17 Sep 2008, Jonathan del Strother wrote: > - "^[ ]*\\(\\([ ]*" > + "^[ \t]*\\(\\([ \t]*" Why? > "[A-Za-z_][A-Za-z_0-9]*\\)\\{2,\\}" > - "[ ]*([^;]*\\)$" }, > + "[ \t]*([^;]*\\)$" }, > + > + { "objc", "![ \t]*\\(do\\|for\\|if\\|else\\|return\\|switch\\|while\\)\n" /* Negate C statements that can look like functions */ > + "^[ \t]*\\([-+][ \t]*([ \t]*[A-Za-z_][A-Za-z_0-9]*.*).*\\)$" /* Objective-C methods */ I see you still have these awfully long lines. Ciao, Dscho