From 76327d17c641a7e065904cf862f8a2aadace1bdc Mon Sep 17 00:00:00 2001 From: rudfol <33jhkim@gmail.com> Date: Fri, 10 Jan 2014 21:23:46 +0000 Subject: [PATCH] Updated space problem- added 'if' --- UltiSnips/c.snippets | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets index 7b40728..bace3a5 100644 --- a/UltiSnips/c.snippets +++ b/UltiSnips/c.snippets @@ -112,8 +112,20 @@ else { endsnippet snippet eli "else if .. (eli)" -else if (${1:/* condition */}) { - ${VISUAL}${0:${VISUAL/(.*)/(?1::\/* code *\/)/}} +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 @@ -131,15 +143,15 @@ endsnippet snippet ifee "if .. else if .. else (ifee)" if (${1:/* condition */}) { - ${2:/* code */} + ${2:/* code */} } else if (${3:/* condition */}) { - ${4:/* code */} + ${4:/* else.i */} } else { - ${5:/* code */} + ${5:/* else */} } endsnippet