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
|
endsnippet
|
||||||
|
|
||||||
snippet for "for loop"
|
snippet for "for loop"
|
||||||
for ({${1:item} in ${2:list}) {
|
for (${1:item} in ${2:list}) {
|
||||||
${3}
|
${3}
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
@ -23,6 +23,16 @@ snippet ei
|
|||||||
${0}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# loops
|
||||||
|
snippet wh
|
||||||
|
while(${1}) {
|
||||||
|
${2}
|
||||||
|
}
|
||||||
|
snippet for
|
||||||
|
for (${1:item} in ${2:list}) {
|
||||||
|
${3}
|
||||||
|
}
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
snippet fun
|
snippet fun
|
||||||
${1:name} = function (${2:variables}) {
|
${1:name} = function (${2:variables}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user