ife snippet for C by theocrite
This commit is contained in:
parent
ed941fb59a
commit
4d642ddee3
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user