From 39f9d77fe386412a5c9721977173e3d0e8d93eb5 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Fri, 2 Nov 2012 12:46:19 +0100 Subject: [PATCH] Improvements to C snippets by Vivien Didelot --- UltiSnips/c.snippets | 7 ++++++- doc/UltiSnips.txt | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) 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.