Fixed a backslash in printf and fprintf snippets

This commit is contained in:
Holger Rapp 2009-07-21 18:03:39 +02:00
parent 242d9f8664
commit a76165c147

View File

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