C++: Add snippets for lambda variables and lambda functions.

This commit is contained in:
tastytea 2021-06-24 16:34:55 +02:00
parent a56ad0988f
commit 159c985e2c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 10 additions and 0 deletions

5
snippets/c++-mode/lamfun Normal file
View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: lamfun
# key: lamfun
# --
$1{[$2]($3){$0}};

5
snippets/c++-mode/lamvar Normal file
View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: lamvar
# key: lamvar
# --
$1{[$2]{$0}()};