mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00

The format is: # var-name: value Previously snippets used a mixture of the following formatting: #var-name: value #var-name : value # var-name: value # var-name : value
7 lines
195 B
Plaintext
7 lines
195 B
Plaintext
# -*- mode: snippet -*-
|
|
# name: printf
|
|
# contributor: joaotavora
|
|
# key: printf
|
|
# --
|
|
printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
|
|
}$2${1:$(if (string-match "%" text) "\);" "")} |