From 5b3aa799e4b4702c2a38a3975f41ac5cb6be5bd0 Mon Sep 17 00:00:00 2001 From: rudfol <33jhkim@gmail.com> Date: Sat, 11 Jan 2014 20:44:11 +0000 Subject: [PATCH] added 'if ..else' snippet --- UltiSnips/c.snippets | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets index 0b474a9..f6a5ca5 100644 --- a/UltiSnips/c.snippets +++ b/UltiSnips/c.snippets @@ -112,23 +112,11 @@ else { endsnippet snippet eli "else if .. (eli)" -else if (${1:/* condition */}) -{ +else if (${1:/* condition */}) { ${2:/* else.i */} } endsnippet -snippet elie "else if.. else (elie)" -else if (${1:/* condition */}) -{ - ${2:/* else.i */} -} -else -{ - ${3:/* else */} -} -endsnippet - snippet ife "if .. else (ife)" if (${1:/* condition */}) { @@ -140,21 +128,6 @@ else } endsnippet -snippet ifee "if .. else if .. else (ifee)" -if (${1:/* condition */}) -{ - ${2:/* code */} -} -else if (${3:/* condition */}) -{ - ${4:/* else.i */} -} -else -{ - ${5:/* else */} -} -endsnippet - snippet printf "printf .. (printf)" printf("${1:%s}\n"${1/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$2${1/([^%]|%%)*(%.)?.*/(?2:\);)/} endsnippet