From 18733185c1bc2b516dc7b790069d22f0a53696f1 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sun, 11 Jan 2015 01:41:41 +0000 Subject: [PATCH] Update Rust for to use new range syntax --- README.md | 1 + UltiSnips/rust.snippets | 2 +- snippets/rust.snippets | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2cb78ca..46cc390 100644 --- a/README.md +++ b/README.md @@ -214,6 +214,7 @@ This list is kept up-to-date on a best effort basis. * PHP - [chrisyue](http://github.com/chrisyue) * Python - [honza](http://github.com/honza) * Ruby - [taq](http://github.com/taq) +* Rust - [lpil](https://github.com/lpil) * Scala - [gorodinskiy](https://github.com/gorodinskiy) License diff --git a/UltiSnips/rust.snippets b/UltiSnips/rust.snippets index 82a1abb..9722d73 100644 --- a/UltiSnips/rust.snippets +++ b/UltiSnips/rust.snippets @@ -164,7 +164,7 @@ while ${1} { endsnippet snippet for "for .. in .." b -for ${1:i} in ${2:range(0u, 10)} { +for ${1:i} in ${2:${3:0us}..${4:10}} { ${VISUAL}${0} } endsnippet diff --git a/snippets/rust.snippets b/snippets/rust.snippets index f135eb5..ad9fb34 100644 --- a/snippets/rust.snippets +++ b/snippets/rust.snippets @@ -70,7 +70,7 @@ snippet while ${0} } snippet for - for ${1:i} in ${2:range(0u, 10)} { + for ${1:i} in ${2:0u..10} { ${0} } snippet spawn