mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-12 00:14:18 +00:00
Tweaking the TextMate C snippets
This commit is contained in:
9
extras/imported/c-mode/once with #ifndef.yasnippet
Normal file
9
extras/imported/c-mode/once with #ifndef.yasnippet
Normal file
@@ -0,0 +1,9 @@
|
||||
# key:once
|
||||
# name : #ifndef XXX; #define XXX; #endif
|
||||
# --
|
||||
#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) (buffer-name)))))`_H_}
|
||||
#define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif /* $1 */
|
||||
Reference in New Issue
Block a user