Merge pull request #348 from r4d2/master
R: Fixed for loop syntax and added while
This commit is contained in:
commit
ec9a7a56ea
@ -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
|
||||
|
@ -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}) {
|
||||
|
Loading…
Reference in New Issue
Block a user