Add explicit "# key" directive to legacy snippet collection before deprecating filenames-as-triggers

This commit is contained in:
Joao Tavora
2011-10-31 12:32:34 +00:00
parent 1bc5993a44
commit f48317e7c5
402 changed files with 403 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
#name : eval { ... } if ($@) { ... }
# key: eval
# --
eval {
${1:# do something risky...}

View File

@@ -1,4 +1,5 @@
#name : for (...) { ... }
# key: for
# --
for (my \$${1:var} = 0; \$$1 < ${2:expression}; \$$1++) {
${3:# body...}

View File

@@ -1,4 +1,5 @@
#name : foreach ... { ... }
# key: fore
# --
foreach my \$${1:x} (@${2:array}) {
${3:# body...}

View File

@@ -1,4 +1,5 @@
#name : if (...) { ... }
# key: perl-modeif
# --
if ($1) {
$0

View File

@@ -1,4 +1,5 @@
#name : if (...) { ... } else { ... }
# key: perl-modeife
# --
if ($1) {
$2

View File

@@ -1,4 +1,5 @@
#name : if, elsif, else ...
# key: perl-modeifee
# --
if ($1) {
${2:# body...}

View File

@@ -1,4 +1,5 @@
#name : sub ... { ... }
# key: sub
# --
sub ${1:function_name} {
$0

View File

@@ -1,4 +1,5 @@
#name : unless (...) { ... }
# key: unless
# --
unless ($1) {
$0

View File

@@ -1,4 +1,5 @@
#name : while (...) { ... }
# key: while
# --
while ($1) {
$0

View File

@@ -1,3 +1,4 @@
#name : ... foreach ...
# key: xfore
# --
${1:expression} foreach @${2:array};

View File

@@ -1,3 +1,4 @@
#name : ... if ...
# key: perl-modexif
# --
${1:expression} if ${2:condition}

View File

@@ -1,3 +1,4 @@
#name : ... unless ...
# key: xunless
# --
${1:expression} unless ${2:condition}

View File

@@ -1,3 +1,4 @@
#name : ... while ...
# key: xwhile
# --
${1:expression} while ${2:condition};