Python code folding bug
Posted: Thu Mar 15, 2012 10:20 am
				
				sample code
should fold up to 
but instead folds to:
problem seems to be when a colon is used on the same line as set of square brackets. 
I notice it when I fold code and the indent markers disappear for that line too.
Thanks
Grant
			Code: Select all
def test():
   a=1
   b=2
   if a==b:
         c='cat'
   else:
         d='dog'
         e='elephant'
         f=e[:5]
   if b==2:
       g='giraffe'Code: Select all
def test(): [...]Code: Select all
def test(): [...]
         f=e[:5]
   if b==2:
       g='giraffe'
I notice it when I fold code and the indent markers disappear for that line too.
Thanks
Grant