From 159c985e2c2a603ba9febf48bdec8e27ff58e89d Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 24 Jun 2021 16:34:55 +0200 Subject: [PATCH] C++: Add snippets for lambda variables and lambda functions. --- snippets/c++-mode/lamfun | 5 +++++ snippets/c++-mode/lamvar | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 snippets/c++-mode/lamfun create mode 100644 snippets/c++-mode/lamvar diff --git a/snippets/c++-mode/lamfun b/snippets/c++-mode/lamfun new file mode 100644 index 0000000..f6963a8 --- /dev/null +++ b/snippets/c++-mode/lamfun @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: lamfun +# key: lamfun +# -- +$1{[$2]($3){$0}}; \ No newline at end of file diff --git a/snippets/c++-mode/lamvar b/snippets/c++-mode/lamvar new file mode 100644 index 0000000..31637aa --- /dev/null +++ b/snippets/c++-mode/lamvar @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: lamvar +# key: lamvar +# -- +$1{[$2]{$0}()}; \ No newline at end of file