mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 18:34:17 +00:00
removing directives from some classic snippets
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#name : for ... in ...; ... end
|
||||
#group : control structure
|
||||
# --
|
||||
for ${1:element} in ${2:collection}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#name : if ... end
|
||||
#group : control structure
|
||||
# --
|
||||
if ${1:condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#name : if ... else ... end
|
||||
#group : control structure
|
||||
# --
|
||||
if ${1:condition}
|
||||
$2
|
||||
else
|
||||
$3
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#name : times { |n| ... }
|
||||
#group : control structure
|
||||
# --
|
||||
times { |${n}| $0 }
|
||||
times { |${n}| $0 }
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# --
|
||||
until ${condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#name : upto(...) { |n| ... }
|
||||
#group : control structure
|
||||
# --
|
||||
upto(${n}) { |${i}|
|
||||
$0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#name : when ... end
|
||||
#group : control structure
|
||||
# --
|
||||
when ${condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#name : while ... end
|
||||
#group : control structure
|
||||
# --
|
||||
while ${condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user