diff --git a/UltiSnips/r.snippets b/UltiSnips/r.snippets index d78a1d7..2d67594 100644 --- a/UltiSnips/r.snippets +++ b/UltiSnips/r.snippets @@ -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 diff --git a/snippets/r.snippets b/snippets/r.snippets index c7ca5ac..d9b210f 100644 --- a/snippets/r.snippets +++ b/snippets/r.snippets @@ -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}) {