mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-06 15:32:25 +00:00
Tweaking the TextMate C snippets
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: def
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: #ifndef … #define … #endif
|
||||
# --
|
||||
#ifndef ${1/([A-Za-z0-9_]+).*/$1/}
|
||||
#define ${1:SYMBOL} ${2:value}
|
||||
#endif
|
||||
${1:$(if (string= text "") "" (concat "#ifndef " text "\n"))}#define ${1:SYMBOL} ${2:value}${1:$(if (string= text "") "" (concat "\n#endif "))}
|
||||
|
||||
Reference in New Issue
Block a user