summaryrefslogtreecommitdiffstats
path: root/emacs.d/lisp/yasnippet/snippets/c-mode/printf
blob: 055461d13628ee3a4799795721f2efe025dc5148 (plain) (blame)
1
2
3
4
5
6
# -*- mode: snippet -*-
# name : printf 
# contributor : joaotavora
# --
printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
}$2${1:$(if (string-match "%" text) "\);" "")}