- Improved python snippets.
This commit is contained in:
parent
9e96a69061
commit
ff281e5171
@ -1,49 +1,49 @@
|
|||||||
snippet class
|
snippet class
|
||||||
abbr class Class(...): ...
|
abbr class Class(...): ...
|
||||||
options head
|
options head
|
||||||
class ${1:name}(${2:object}):
|
class ${1:#:name}(${2:#:object}):
|
||||||
def __init__(self, ${3}):
|
def __init__(self, ${3}):
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet classd
|
snippet classd
|
||||||
abbr class Class(...): "..."
|
abbr class Class(...): "..."
|
||||||
options head
|
options head
|
||||||
class ${1:name}(${2:object}):
|
class ${1:#:name}(${2:#:object}):
|
||||||
"""${3:class documentation}"""
|
"""${3:#:class documentation}"""
|
||||||
def __init__(self, ${4}):
|
def __init__(self, ${4}):
|
||||||
"""${5:__init__ documentation}"""
|
"""${5:#:__init__ documentation}"""
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet def
|
snippet def
|
||||||
abbr def function(...): ...
|
abbr def function(...): ...
|
||||||
options head
|
options head
|
||||||
def ${1:name}(${2}):
|
def ${1:#:name}(${2}):
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet defd
|
snippet defd
|
||||||
abbr def function(...): """..."""
|
abbr def function(...): """..."""
|
||||||
options head
|
options head
|
||||||
def ${1:name}(${2}):
|
def ${1:#:name}(${2}):
|
||||||
"""${3:function documentation}"""
|
"""${3:#:function documentation}"""
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet defm
|
snippet defm
|
||||||
abbr def method(self, ...): ...
|
abbr def method(self, ...): ...
|
||||||
options head
|
options head
|
||||||
def ${1:name}(self, ${2}):
|
def ${1:#:name}(self, ${2}):
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet defmd
|
snippet defmd
|
||||||
abbr def method(self, ...): "..."
|
abbr def method(self, ...): "..."
|
||||||
options head
|
options head
|
||||||
def ${1:name}(self, ${2}):
|
def ${1:name}(self, ${2}):
|
||||||
"""${3:method documentation}"""
|
"""${3:#:method documentation}"""
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet elif
|
snippet elif
|
||||||
abbr elif ...: ...
|
abbr elif ...: ...
|
||||||
options head
|
options head
|
||||||
elif ${1:condition}:
|
elif ${1:#:condition}:
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet else
|
snippet else
|
||||||
@ -66,13 +66,13 @@ options head
|
|||||||
snippet for
|
snippet for
|
||||||
abbr for ... in ...: ...
|
abbr for ... in ...: ...
|
||||||
options head
|
options head
|
||||||
for ${1:value} in ${2:list}:
|
for ${1:#:value} in ${2:#:list}:
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet if
|
snippet if
|
||||||
abbr if ...: ...
|
abbr if ...: ...
|
||||||
options head
|
options head
|
||||||
if ${1:condition}:
|
if ${1:#:condition}:
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet ifmain
|
snippet ifmain
|
||||||
@ -86,7 +86,7 @@ abbr try: ... except ...: ...
|
|||||||
options head
|
options head
|
||||||
try:
|
try:
|
||||||
${1}
|
${1}
|
||||||
except ${2:ExceptionClass}:
|
except ${2:#:ExceptionClass}:
|
||||||
${3}
|
${3}
|
||||||
|
|
||||||
snippet tryfinally
|
snippet tryfinally
|
||||||
@ -100,6 +100,6 @@ options head
|
|||||||
snippet while
|
snippet while
|
||||||
abbr while ...: ...
|
abbr while ...: ...
|
||||||
options head
|
options head
|
||||||
while ${1:condition}:
|
while ${1:#:condition}:
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
|
@ -466,6 +466,7 @@ CHANGELOG *neosnippet-changelog*
|
|||||||
|
|
||||||
2012-10-30
|
2012-10-30
|
||||||
- Implemented commented placeholder.
|
- Implemented commented placeholder.
|
||||||
|
- Improved python snippets.
|
||||||
|
|
||||||
2012-10-29
|
2012-10-29
|
||||||
- Improved parse of snippets file.
|
- Improved parse of snippets file.
|
||||||
|
Loading…
Reference in New Issue
Block a user