7 lines
195 B
Text
7 lines
195 B
Text
|
# -*- mode: snippet -*-
|
||
|
# name: printf
|
||
|
# contributor: joaotavora
|
||
|
# key: printf
|
||
|
# --
|
||
|
printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
|
||
|
}$2${1:$(if (string-match "%" text) "\);" "")}
|