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