[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:50:16 CET

Douglas Stonham wrote:

>On Thu, February 17, 2005 1:57 am, SteveKing said:
>
>
>>- as of revision 2685, TSVN also uses regex groups and you can specify
>>the flags to use in the autolist.txt file like this:
>>(MULTILINE|NOCASE|GLOBAL) .txt, .pic = (regex-string)
>>
>>
>
>Cool... Setting nocase and removing the case options from the string
>almost halved the benchmark time :)
>
>
>
>>Now the only thing left are the many many regex strings for as many
>>filetypes as possible ;)
>>
>>
>
>(MULTILINE|NOCASE) .vb = (?:class|function|sub)\s+(\w+)(?:\s*(?:[\(\']|$))
>
>
Just out of curiosity... why use MULTILINE if you're not anchoring to
the beginning of each line with "^" caret? That will surely increase the
time it takes to match, since it is now looking for newline characters.

May I suggest:

(MULTILINE|NOCASE) .vb = ^\s*(?:class|function|sub)\s+(\w+)(?:\s*(?:[\(\']|$))

---------------------------------------------------------------------
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:51:03 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.