mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 10:24:18 +00:00
restructuring classic snippets dir to conform to new parenting specs
This commit is contained in:
1
snippets/c-mode/.yas-parents
Normal file
1
snippets/c-mode/.yas-parents
Normal file
@@ -0,0 +1 @@
|
||||
cc-mode
|
||||
3
snippets/c-mode/fopen
Normal file
3
snippets/c-mode/fopen
Normal file
@@ -0,0 +1,3 @@
|
||||
#name : FILE *fp = fopen(..., ...);
|
||||
# --
|
||||
FILE *${fp} = fopen(${"file"}, "${r}");
|
||||
6
snippets/c-mode/printf
Normal file
6
snippets/c-mode/printf
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name : printf
|
||||
# contributor : joaotavora
|
||||
# --
|
||||
printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
|
||||
}$2${1:$(if (string-match "%" text) "\);" "")}
|
||||
Reference in New Issue
Block a user