From 8ed09b15973954d94d50ed1998a2bbc5ed5f3550 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 4 Sep 2016 22:47:01 +0100 Subject: [PATCH] Add C++ lambda function snippet --- UltiSnips/cpp.snippets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UltiSnips/cpp.snippets b/UltiSnips/cpp.snippets index 7c61b99..1cc3c6e 100644 --- a/UltiSnips/cpp.snippets +++ b/UltiSnips/cpp.snippets @@ -56,3 +56,7 @@ endsnippet snippet reinterpret_cast "Reinterpret case" reinterpret_cast<$1>($2)$0 endsnippet + +snippet [] "Labmda function" +[$1]($2)${3/(.*)/(?1: -> ::)/}$3 {$0} +endsnippet