Re: [PATCH] Teach git diff about Objective-C syntax
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Sep 17, 2008, 11:06 UTC
- Message-ID
- <alpine.DEB.1.00.0809171205430.14329@racer>
- 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?
Show 6 quoted lines
> "[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