Replaced space indent through tab indent in snippets. This is more logical now that expandtab is adhered to
This commit is contained in:
parent
22804a2cbb
commit
51f462bbde
@ -25,8 +25,8 @@ class ${1:MyClass}(${2:object}):
|
||||
def __init__( self${4/([^,])?(.*)/(?1:, )/}${4:arg} ):
|
||||
"""
|
||||
TODO: Fill me in
|
||||
${4/.+/(?0:\n)/}${4/(\A\s*,\s*\Z)|,?\s*([A-Za-z_][A-Za-z0-9_]*)\s*(=[^,]*)?(,\s*|$)/(?2: $2 - describe me here\n)/g} """
|
||||
${2/object$|(.+)/(?1: $0.__init__\(self\)\n\n)/}${4/(\A\s*,\s*\Z)|,?\s*([A-Za-z_][A-Za-z0-9_]*)\s*(=[^,]*)?(,\s*|$)/(?2: self._$2 = $2\n)/g}
|
||||
${4/.+/(?0:\n)/}${4/(\A\s*,\s*\Z)|,?\s*([A-Za-z_][A-Za-z0-9_]*)\s*(=[^,]*)?(,\s*|$)/(?2:\t\t$2 - describe me here\n)/g}\t\t"""
|
||||
${2/object$|(.+)/(?1:\t\t$0.__init__\(self\)\n\n)/}${4/(\A\s*,\s*\Z)|,?\s*([A-Za-z_][A-Za-z0-9_]*)\s*(=[^,]*)?(,\s*|$)/(?2:\t\tself._$2 = $2\n)/g}
|
||||
endsnippet
|
||||
|
||||
snippet .
|
||||
@ -48,7 +48,7 @@ endsnippet
|
||||
|
||||
snippet rwprop "Read write property" b
|
||||
def ${1:property}():
|
||||
${2/.+/(?0:""")/}${2:The RW property $1}${2/.+/(?0:"""\n )/}def fget(self):
|
||||
${2/.+/(?0:""")/}${2:The RW property $1}${2/.+/(?0:"""\n\t\t)/}def fget(self):
|
||||
return self._$1$0
|
||||
def fset(self, value):
|
||||
self._$1 = value
|
||||
|
Loading…
Reference in New Issue
Block a user