mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-05 15:02:26 +00:00
Tweaking the TextMate C snippets
This commit is contained in:
5
extras/imported/c-mode/snprintf.yasnippet
Normal file
5
extras/imported/c-mode/snprintf.yasnippet
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: sprintf
|
||||
# name: s(n)printf …
|
||||
# --
|
||||
s${2:$(if (string= text "") "" "n")}printf (${1:string}${2:$(if (string= text "") "" ",")}${2:size}, "${3:%s}\\n"${3:$(if (string-match "%[^%]" text) "," "\);")}$4${3:$(if (string-match "%" text) "\);" "")}
|
||||
Reference in New Issue
Block a user