mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 10:24:18 +00:00
Keep snippet vars definitions in a single format across all snippets and documentation.
The format is: # var-name: value Previously snippets used a mixture of the following formatting: #var-name: value #var-name : value # var-name: value # var-name : value
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#name : __...__
|
||||
# name: __...__
|
||||
# key: __
|
||||
# --
|
||||
__${init}__
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : for ... in ... : ...
|
||||
# name: for ... in ... : ...
|
||||
# key: for
|
||||
# --
|
||||
for ${var} in ${collection}:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : if __name__ == '__main__': ...
|
||||
# name: if __name__ == '__main__': ...
|
||||
# key: ifmain
|
||||
# --
|
||||
if __name__ == '__main__':
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#contributor : Julio Carlos Menendez <godinblack@gmail.com>
|
||||
#name : _get_foo ... foo=property(...)
|
||||
# contributor: Julio Carlos Menendez <godinblack@gmail.com>
|
||||
# name: _get_foo ... foo=property(...)
|
||||
# key: propg
|
||||
# --
|
||||
def _get_${1:foo}(self):
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#contributor : Julio Carlos Menendez <godinblack@gmail.com>
|
||||
#name : _get_foo ... _set_foo ... foo=property(...)
|
||||
# contributor: Julio Carlos Menendez <godinblack@gmail.com>
|
||||
# name: _get_foo ... _set_foo ... foo=property(...)
|
||||
# key: propsg
|
||||
# --
|
||||
def _set_${1:foo}(self, value):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : while ... : ...
|
||||
# name: while ... : ...
|
||||
# key: while
|
||||
# --
|
||||
while ${condition}:
|
||||
|
||||
Reference in New Issue
Block a user