Skip to content

Commit

Permalink
Merge pull request honza#348 from r4d2/master
Browse files Browse the repository at this point in the history
R: Fixed for loop syntax and added while
  • Loading branch information
SirVer committed Apr 25, 2014
2 parents 8efe43e + 74ef5cb commit ec9a7a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion UltiSnips/r.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions snippets/r.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -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}) {
Expand Down

0 comments on commit ec9a7a5

Please sign in to comment.