comments inside blocks
P at draigBrady.com
P at draigBrady.com
Thu Jan 2 10:36:32 EST 2003
More information about the Python-list mailing list
Thu Jan 2 10:36:32 EST 2003
- Previous message (by thread): Best Python Editor (under Linux)
- Next message (by thread): comments inside blocks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Gerrit Holl wrote: > P_spam_ at draigBrady.com schreef op donderdag 2 januari om 15:01:08 +0000: > >>However the folding seems wrong for python. For the >>following code the comment is folded along with >>the for statement? >> >>for i in range(10): >> a=1 >>#comment > > It should, because... > > >>>>None >>>>for i in range(10): > > ... print i > ... #... > ... print i**2 > > ...runs fine at my machine, apparantly it's permitted. Hmm but the editor should be able to distinguish between these 2 cases IMHO: for i in range(10): print i #comment nothing to do with for for i in range(10): print i #not normal but valid comment in for print i**2 Note in the scintilla TODO I noticed: "Folding for languages that don't have it yet and good folding for languages that inherited poor folding from another languages folding code." so I guess it's a known issue. Pádraig.
- Previous message (by thread): Best Python Editor (under Linux)
- Next message (by thread): comments inside blocks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list