[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: Toby Johnson <toby_at_etjohnson.us>
Date: 2005-02-17 17:05:05 CET

Lübbe Onken wrote:

>Hi Toby,
>
>
>
>>I doubt you want to actually return the words "class",
>>"procedure", etc.
>>To prevent a pair of parentheses from actually returning that
>>value, use
>>the (?:) notation. Also, I believe you wanted to make "class"
>>optional?
>>
>>
>No, I only wanted to have the classes, not const, record and other stuff
>that is on the left hand side of a '='.
>
>
>
>>(NOCASE) .pas =
>>(\w+)\s+=\s+(?:class)?|(?:procedure|function|property)\s+(\w+)
>>
>>
>
>Now everything in front of a '=' sign gets returned, not just class names. I
>still have to decide whether I like this. May be nice for other type and
>const declarations.
>There are lots of empty lines returned as well. Any idea why?
>
>
I guess I'm not fluent enough in my Pascal! Didn't your original regex
return the word "class" repeatedly?

I'm not sure why the blank lines are getting returned now; maybe a
change to the test program.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Feb 17 17:05:47 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.