Skip to content

Commit

Permalink
marker folding in python functions and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpabloaj authored and garbas committed Jun 22, 2011
1 parent 1449e43 commit dbd48df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions snippets/python.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,19 @@ snippet cl
${6}
# New Function
snippet def
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):#{{{
"""${3:docstring for $1}"""
${4:pass}
#}}}
snippet deff
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}): #{{{
${3}
#}}}
# New Method
snippet defs
def ${1:mname}(self, ${2:arg}):
def ${1:mname}(self, ${2:arg}):#{{{
${3:pass}
#}}}
# New Property
snippet property
def ${1:foo}():
Expand Down

0 comments on commit dbd48df

Please sign in to comment.