Merge pull request #348 from r4d2/master

R: Fixed for loop syntax and added while
This commit is contained in:
Holger Rapp 2014-04-25 06:45:54 +02:00
commit ec9a7a56ea
2 changed files with 11 additions and 1 deletions

View File

@ -48,7 +48,7 @@ while(${1}) {
endsnippet
snippet for "for loop"
for ({${1:item} in ${2:list}) {
for (${1:item} in ${2:list}) {
${3}
}
endsnippet

View File

@ -23,6 +23,16 @@ snippet ei
${0}
}
# loops
snippet wh
while(${1}) {
${2}
}
snippet for
for (${1:item} in ${2:list}) {
${3}
}
# functions
snippet fun
${1:name} = function (${2:variables}) {