ife snippet for C by theocrite

This commit is contained in:
Holger Rapp 2012-10-13 12:11:50 +02:00
parent ed941fb59a
commit 4d642ddee3
2 changed files with 12 additions and 1 deletions

View File

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

View File

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