diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets index 532fe17..c92dbd7 100644 --- a/UltiSnips/c.snippets +++ b/UltiSnips/c.snippets @@ -1,4 +1,3 @@ - ########################################################################### # TextMate Snippets # ########################################################################### @@ -88,6 +87,17 @@ if (${1:/* condition */}) } endsnippet +snippet ife "if .. else (ife)" +if (${1:/* condition */}) +{ + ${2:/* code */} +} +else +{ + ${3:/* else */} +} +endsnippet + snippet printf "printf .. (printf)" printf("${1:%s}\n"${1/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$2${1/([^%]|%%)*(%.)?.*/(?2:\);)/} endsnippet diff --git a/doc/UltiSnips.txt b/doc/UltiSnips.txt index 4cd8831..6d14b4d 100644 --- a/doc/UltiSnips.txt +++ b/doc/UltiSnips.txt @@ -1274,6 +1274,7 @@ Contributors listed in chronological order: Jacek Wysocki (exu) Alexander Kondratskiy (KholdStare) Martin Krauskopf (martin-krauskopf) + Theocrite (theocrite) Thank you for your support.