Skip to content

Commit

Permalink
ife snippet for C by theocrite
Browse files Browse the repository at this point in the history
  • Loading branch information
SirVer committed Oct 13, 2012
1 parent ed941fb commit 4d642dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion UltiSnips/c.snippets
@@ -1,4 +1,3 @@

###########################################################################
# TextMate Snippets #
###########################################################################
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions doc/UltiSnips.txt
Expand Up @@ -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.

Expand Down

0 comments on commit 4d642dd

Please sign in to comment.