Snippet tweaking

This commit is contained in:
capitaomorte
2010-02-01 10:36:42 +00:00
parent 9f8fab6bc6
commit b589d4434a
5 changed files with 37 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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) "\);" "")}