Hello,
Does Textmate's code folding have limitations when a method declaration is split across lines? Sometimes I have long parameter lists which necessitate this style:
class MyClass(): def __init__(self, var1=var1Default, var2=var2Default, var3=var3Default, var4=var4Default, var5=var5Default, var6=var6Default, var7=var7Default, var8=var8Default): pass
def method1(self): pass
def method2(self): pass
def method3(self): pass
When I format the __init__() method above across line boundaries, I lose code folding. Bummer. I know. I could use a work-around idea if this is the way it is. :)
Cheers! AZ
On 23 Jun 2009, at 01:05, Artie Ziff wrote:
Does Textmate's code folding have limitations when a method declaration is split across lines? Sometimes I have long parameter lists which necessitate this style:
It folds based on start/end markers matched via regexps. For Python this is not possible to setup, so a workaround is to instead have it consider blank lines as the end marker (iirc).
So yeah, you could easily see problems folding Python.