From a76165c1477ee459f67848877880a3e66a5d5090 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Tue, 21 Jul 2009 18:03:39 +0200 Subject: [PATCH] Fixed a backslash in printf and fprintf snippets --- UltiSnips/c.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets index 50288cd..fae8539 100644 --- a/UltiSnips/c.snippets +++ b/UltiSnips/c.snippets @@ -70,7 +70,7 @@ do { endsnippet snippet fprintf "fprintf …" -fprintf(${1:stderr}, "${2:%s}\\n"${2/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$3${2/([^%]|%%)*(%.)?.*/(?2:\);)/} +fprintf(${1:stderr}, "${2:%s}\n"${2/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$3${2/([^%]|%%)*(%.)?.*/(?2:\);)/} endsnippet snippet if "if .. (if)" @@ -81,7 +81,7 @@ if(${1:/* condition */}) endsnippet snippet printf "printf .. (printf)" -printf("${1:%s}\\n"${1/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$2${1/([^%]|%%)*(%.)?.*/(?2:\);)/} +printf("${1:%s}\n"${1/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$2${1/([^%]|%%)*(%.)?.*/(?2:\);)/} endsnippet snippet st "struct"