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

RE: [TSVN] VB RegEx

From: Josha Foust <jfoust_at_mankowindows.com>
Date: 2005-02-18 15:58:06 CET

> -----Original Message-----
> From: SteveKing [mailto:stefankueng@gmail.com]
> Sent: Friday, February 18, 2005 5:49 AM
> To: dev@tortoisesvn.tigris.org
> Subject: Re: [TSVN] VB RegEx
>
> On Fri, 18 Feb 2005 11:17:44 +0100, Lübbe Onken <l.onken@rac.de> wrote:
> > Hi Folks,
> >
> > I just added a Regex for .pas files to the list and noticed that it
> contains
> > two regexes for all the vb files.
> >
> > .bas, .frm, .cls = (?<=(Public |Private )?(Sub|Function|Property
> > Get|Property Set|Property Let) )(\w+)(?=\(.*\))
> > and
> > (MULTILINE) .bas, .frm, .cls = ^\s*(?:(?:Public (?:Default )?|Private
> > )?(?:Sub|Function) ?)(\w+)\(|^Attribute VB_Name = "(\w+)"
> >
> > Which one is the right one?
>
> I think the last one. Looking at the log of that file, it seems I
> accidentally added the improved version instead of replacing the old
> one. Sorry.
>
> Fixed in revision 2701.
>
> Stefan
>

The multiline type is definitely the type wanted. The one committed
contains the Property (Get|Let|Set) matching, which having though about it
more, is probably too much. None of the other regexps seem to be matching
properties or members, so it would probably be better without it.

Is there a standard? Is auto-completion supposed to be for class and
function names? What about events, properties, members, etc? Although it
might be hard to separate events from subroutines in VB6... Of do we not
care that much? :)

Josha Foust

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Feb 18 16:00:42 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.