Refactor C/C++ snippets

This commit is contained in:
Kenneth Benzie 2016-09-04 21:43:53 +01:00
parent 8fb6507c1c
commit b1af2d0eff
2 changed files with 4 additions and 5 deletions

View File

@ -43,6 +43,9 @@ snippet u64 "uint64_t" i
uint64_t uint64_t
endsnippet endsnippet
# TODO: include
# 1. Default should be '#include <filename.h>'.
# 2. Relative paths should only allow inserting a single '"'.
snippet #include "Include directive" snippet #include "Include directive"
#include <${1:header}> #include <${1:header}>
endsnippet endsnippet
@ -155,7 +158,7 @@ int main(int argc, char **argv) {
} }
endsnippet endsnippet
snippet @param "Doxygen param tag" snippet param "Doxygen param tag"
@param[$1`!p snip.rv = complete(t[1], ['in', 'out'])`] @param[$1`!p snip.rv = complete(t[1], ['in', 'out'])`]
endsnippet endsnippet

View File

@ -2,10 +2,6 @@ extends c
priority 1 priority 1
# TODO: include
# 1. Default should be '#include <filename.h>'.
# 2. Relative paths should only allow inserting a single '"'.
snippet enum "Enumeration" snippet enum "Enumeration"
enum ${1:name} { enum ${1:name} {
$0 $0