diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets index c92dbd7..062a36a 100644 --- a/UltiSnips/c.snippets +++ b/UltiSnips/c.snippets @@ -1,7 +1,12 @@ ########################################################################### # TextMate Snippets # ########################################################################### -snippet def "#ifndef ... #define ... #endif" + +snippet def "#define ..." +#define ${1} +endsnippet + +snippet ifndef "#ifndef ... #define ... #endif" #ifndef ${1/([A-Za-z0-9_]+).*/$1/} #define ${1:SYMBOL} ${2:value} #endif diff --git a/doc/UltiSnips.txt b/doc/UltiSnips.txt index 1f6990e..3ae7a72 100644 --- a/doc/UltiSnips.txt +++ b/doc/UltiSnips.txt @@ -1290,6 +1290,7 @@ Contributors listed in chronological order: Martin Krauskopf (martin-krauskopf) Theocrite (theocrite) Ferdinand Majerech (kiith-sa) + Vivien Didelot Thank you for your support.