From 1c08e9206363488b6bc7c4ad4ae08778483077da Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 27 Sep 2016 13:42:20 +0100 Subject: [PATCH] Improve C++ for loop snippet --- UltiSnips/cpp.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UltiSnips/cpp.snippets b/UltiSnips/cpp.snippets index 0182c8e..75fb029 100644 --- a/UltiSnips/cpp.snippets +++ b/UltiSnips/cpp.snippets @@ -9,7 +9,7 @@ enum ${1:name} { endsnippet snippet for "For loop, index or range" -for (${1:auto} ${2:index} ${3/(.*;.*)|(\w*)/(?1:=:\:)/} ${3:0; $2 < ${4:count}; $2${5:++}}) { +for (${1:auto} ${2:index} ${4/(.*;.*)|(\w*)/(?1:=:\:)/} ${4:${3:0}; $2 < ${5:count}; $2${6:++}}) { $0 } endsnippet