From b1af2d0effdeba74d8be3461a5b92df00efe205f Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 4 Sep 2016 21:43:53 +0100 Subject: [PATCH] Refactor C/C++ snippets --- UltiSnips/c.snippets | 5 ++++- UltiSnips/cpp.snippets | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets index c984405..73d70d9 100644 --- a/UltiSnips/c.snippets +++ b/UltiSnips/c.snippets @@ -43,6 +43,9 @@ snippet u64 "uint64_t" i uint64_t endsnippet +# TODO: include +# 1. Default should be '#include '. +# 2. Relative paths should only allow inserting a single '"'. snippet #include "Include directive" #include <${1:header}> endsnippet @@ -155,7 +158,7 @@ int main(int argc, char **argv) { } endsnippet -snippet @param "Doxygen param tag" +snippet param "Doxygen param tag" @param[$1`!p snip.rv = complete(t[1], ['in', 'out'])`] endsnippet diff --git a/UltiSnips/cpp.snippets b/UltiSnips/cpp.snippets index e019a15..7c61b99 100644 --- a/UltiSnips/cpp.snippets +++ b/UltiSnips/cpp.snippets @@ -2,10 +2,6 @@ extends c priority 1 -# TODO: include -# 1. Default should be '#include '. -# 2. Relative paths should only allow inserting a single '"'. - snippet enum "Enumeration" enum ${1:name} { $0