Tweaking the TextMate C snippets

This commit is contained in:
capitaomorte
2009-08-30 22:16:44 +00:00
parent c323cddbd6
commit f5aaad220f
10 changed files with 31 additions and 18 deletions

View File

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