added 'if else ..' snippet

This commit is contained in:
rudfol 2014-01-11 20:44:11 +00:00
parent eb5f4946ad
commit b0f5f6acf0

View File

@ -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