[Pydev-code] Re: parentheses autocompletion [WAS: Re: tiny PyDev javadoc patch (and ideas for anothe
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2005-07-12 00:12:00
|
On 7/11/05, the...@op... <the...@op...> wrote: >=20 > ----- Original Message ----- > From: Fabio Zadrozny <fa...@gm...> > Date: Monday, July 11, 2005 5:19 pm > Subject: Re: parentheses autocompletion [WAS: Re: tiny PyDev javadoc patc= h (and ideas for another one)] >=20 > > To make the match, take a look at > > org.python.copiedfromeclipsesrc.PythonPairMatcher. >=20 > Ah, thanks. I'll see what I can do with that. >=20 > > 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)... >=20 > 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... >=20 > > 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. >=20 > Oh, yes. I'm a fan of unit tests myself, and I'm using unit tests alread= y. >=20 > Take care, and thanks. I'll send you something once I feel comfortable s= ending it to you. >=20 Waiting forward to see it... :-) p.s. I'm also forwarding it to the pydev mailing list Cheers, Fabio > |