mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 18:34:17 +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 : for ... in ...; ... end
|
||||
# name: for ... in ...; ... end
|
||||
# key: forin
|
||||
# --
|
||||
for ${1:element} in ${2:collection}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : if ... end
|
||||
# name: if ... end
|
||||
# key: if
|
||||
# --
|
||||
if ${1:condition}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : if ... else ... end
|
||||
# name: if ... else ... end
|
||||
# key: ife
|
||||
# --
|
||||
if ${1:condition}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : times { |n| ... }
|
||||
# name: times { |n| ... }
|
||||
# key: tim
|
||||
# --
|
||||
times { |${n}| $0 }
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : until ... end
|
||||
# name: until ... end
|
||||
# key: until
|
||||
# --
|
||||
until ${condition}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : upto(...) { |n| ... }
|
||||
# name: upto(...) { |n| ... }
|
||||
# key: upt
|
||||
# --
|
||||
upto(${n}) { |${i}|
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : when ... end
|
||||
# name: when ... end
|
||||
# key: when
|
||||
# --
|
||||
when ${condition}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : while ... end
|
||||
# name: while ... end
|
||||
# key: while
|
||||
# --
|
||||
while ${condition}
|
||||
|
||||
Reference in New Issue
Block a user