mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 18:04:18 +00:00
Tweaking the TextMate C snippets
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: printf
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: printf …
|
||||
# name: printf (...)
|
||||
# --
|
||||
printf("${1:%s}\\n"${1/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$2${1/([^%]|%%)*(%.)?.*/(?2:\);)/}
|
||||
printf ("${1:%s}\\n"${1:$(if (string-match "%[^%]" text) "," "\);")
|
||||
}$2${1:$(if (string-match "%" text) "\);" "")}
|
||||
|
||||
Reference in New Issue
Block a user