[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r28702 - trunk/subversion/libsvn_diff

From: Branko Čibej <brane_at_xbc.nu>
Date: 2007-12-30 04:18:51 CET

jerenkrantz@tigris.org wrote:
> Author: jerenkrantz
> Date: Sat Dec 29 10:58:18 2007
> New Revision: 28702
>
> Log:
> Diff: Make -p ignore 'public'/'private'/'protected' C++/Java reserved words.
>
[...]
> + c = apr_array_push(baton.extra_skip_match);
> + *c = "public:*";
> + c = apr_array_push(baton.extra_skip_match);
> + *c = "private:*";
> + c = apr_array_push(baton.extra_skip_match);
> + *c = "protected:*";
>
This will (mostly*) work for C++ where these keywords have label-like
syntax, but not for Java, where they are modifiers. That said, I've
never seen Java code where one of these keywords would appear in the
first column of a line.

-- Brane

* There can be whitespace between the keyword and the colon in C++.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 30 06:27:13 2007

This is an archived mail posted to the Subversion Dev mailing list.