mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-06 15:32:25 +00:00
Snippet tweaking
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: main()
|
||||
# --
|
||||
int main (int argc, char const${TM_C_POINTER: *}argv[])
|
||||
int main (int argc, char const *argv[])
|
||||
{
|
||||
${0:/* code */}
|
||||
${1:/* code */$(when yas/modified-p (yas/exit-snippet (first (yas/snippets-at-point))) (yas/field-value 1))}$0
|
||||
return 0;
|
||||
}
|
||||
@@ -3,4 +3,4 @@
|
||||
# name: printf (...)
|
||||
# --
|
||||
printf ("${1:%s}\\n"${1:$(if (string-match "%[^%]" text) "," "\);")
|
||||
}$2${1:$(if (string-match "%" text) "\);" "")}
|
||||
}$2${1:$(if (string-match "%" text) "\);" "")}
|
||||
Reference in New Issue
Block a user