On 7/11/05, thealchemist@... <thealchemist@...> wrote:
> ----- Original Message -----
> From: Fabio Zadrozny <fabiofz@...>
> Date: Monday, July 11, 2005 5:19 pm
> Subject: Re: parentheses autocompletion [WAS: Re: tiny PyDev javadoc patc=
h (and ideas for another one)]
> > To make the match, take a look at
> > org.python.copiedfromeclipsesrc.PythonPairMatcher.
> Ah, thanks. I'll see what I can do with that.
> > As for the colon,
> > you should check only if there is a colon in the next
> > char, and
> > not in
> > the whole line, I can think of cases with comments, e.g.:
> > class A:
> > pass #.... : ... or even code, e.g.: if debugToggle =3D=3D 0:
> > lambda a:10;
> > x =3D 20 (that would not do anything, but it is valid
> > code)...
> Yes, good point. I just fixed that. It can now checks the next characte=
r (should I care about new lines?).
Not really, only document length...
> > When I do things like that, with many variables, but
> > fairly simple in
> > the end, I like to do unit-tests, so, if you feel like doing
> > it, you
> > can check
> > org.python.pydev.editor.PyAutoIndentStrategyTest for
> > tests on the current things and extend it.
> Oh, yes. I'm a fan of unit tests myself, and I'm using unit tests alread=
> Take care, and thanks. I'll send you something once I feel comfortable s=
ending it to you.
Waiting forward to see it... :-)
p.s. I'm also forwarding it to the pydev mailing list