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

Re: [TSVN] Autocompletion list in the commit dialog

From: Douglas Stonham <dstonham_at_pennysaverusa.net>
Date: 2005-02-17 18:00:09 CET

On Thu, February 17, 2005 8:44 am, SteveKing said:
> Rainer Müller wrote:
>> (MULTILINE) .php =
>> \s+class|(?<=(?=public|private|)\s+function)\s(\w+)|::(\w+)|->(\w+)
>>
>> This regex generates many empty lines, but I think this is something in
>> the test tool?
>
> Not really. The test tool only prints what really _is_ inside the
> matched groups. So there are a lot of empty groups.
> But empty lines don't get added to the autocompletion list anyway, so
> that's not a problem.

Just a thought, but rather than empty matches, I think these are carriage
returns being included in the returned match (which may or may not be a
problem for the autocomplete list).

I believe \s actually matches cr and lf so the initial \s+ is probably at
fault here. Could you try...

(MULTILINE) .php = [
\t]*class|(?<=(?=public|private|)\s+function)\s(\w+)|::(\w+)|->(\w+)

... and see if the empty lines disappear? I also changed the first + to *
since I am assuming (possibly incorrectly) that the 'class' word could be
the first thing on a line?

Douglas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Feb 17 18:02:49 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.