Tweaking the TextMate C snippets

This commit is contained in:
capitaomorte
2009-08-30 22:16:44 +00:00
parent c323cddbd6
commit f5aaad220f
10 changed files with 31 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
# -*- mode: snippet -*-
# key: printf
# contributor: Translated from TextMate Snippet
# name: printf …
# name: printf (...)
# --
printf("${1:%s}\\n"${1/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$2${1/([^%]|%%)*(%.)?.*/(?2:\);)/}
printf ("${1:%s}\\n"${1:$(if (string-match "%[^%]" text) "," "\);")
}$2${1:$(if (string-match "%" text) "\);" "")}