mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-19 20:38:05 +01:00
fixed "property" Python snippet
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
snippet #!
|
snippet #!
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
# Module Docstring
|
||||||
|
snippet docs
|
||||||
|
'''
|
||||||
|
File: ${1:`Filename('$1.py', 'foo.py')`}
|
||||||
|
Author: ${2:`g:snips_author`}
|
||||||
|
Description: ${3}
|
||||||
|
'''
|
||||||
snippet wh
|
snippet wh
|
||||||
while ${1:condition}:
|
while ${1:condition}:
|
||||||
${2:# code...}
|
${2:# code...}
|
||||||
@@ -29,9 +36,10 @@ snippet property
|
|||||||
def ${1:foo}():
|
def ${1:foo}():
|
||||||
doc = "${2:The $1 property.}"
|
doc = "${2:The $1 property.}"
|
||||||
def fget(self):
|
def fget(self):
|
||||||
${3:return self._$1}
|
${3:return self._$1}
|
||||||
def fset(self, value):
|
def fset(self, value):
|
||||||
|
${4:self._$1 = value}
|
||||||
|
|
||||||
# Self
|
# Self
|
||||||
snippet .
|
snippet .
|
||||||
self.
|
self.
|
||||||
|
|||||||
Reference in New Issue
Block a user