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