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