From 1c08287613c75265055811c3fe2b2649b7484363 Mon Sep 17 00:00:00 2001 From: Nate Mara Date: Wed, 4 Nov 2015 16:35:52 +0100 Subject: [PATCH] Add comment ending ifndef block to ifndef c snippet --- UltiSnips/c.snippets | 2 +- snippets/c.snippets | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets index 3ee3fa4..56f34e5 100644 --- a/UltiSnips/c.snippets +++ b/UltiSnips/c.snippets @@ -11,7 +11,7 @@ endsnippet snippet ifndef "#ifndef ... #define ... #endif" #ifndef ${1/([A-Za-z0-9_]+).*/$1/} #define ${1:SYMBOL} ${2:value} -#endif +#endif /* ifndef $1 */ endsnippet snippet #if "#if #endif" b diff --git a/snippets/c.snippets b/snippets/c.snippets index 6a1cbaa..f4745c2 100644 --- a/snippets/c.snippets +++ b/snippets/c.snippets @@ -25,7 +25,7 @@ snippet Inc snippet ndef #ifndef $1 #define ${1:SYMBOL} ${2:value} - #endif + #endif /* ifndef $1 */ # define snippet def #define