emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/yasnippet-snippets baf82bd9dc 13/13: Two more c++-mode sni


From: ELPA Syncer
Subject: [nongnu] elpa/yasnippet-snippets baf82bd9dc 13/13: Two more c++-mode snippets: forr and lambda (#472)
Date: Fri, 5 Jan 2024 07:00:47 -0500 (EST)

branch: elpa/yasnippet-snippets
commit baf82bd9dc01d0d12cd6b6a798e90c6943aeebe1
Author: Changhong Zhong <zhongchh7@mail2.sysu.edu.cn>
Commit: GitHub <noreply@github.com>

    Two more c++-mode snippets: forr and lambda (#472)
    
    * c++-mode: add fore and lambda keywords
    
    * c++-mode: rename fore to forr
---
 snippets/c++-mode/forr   | 7 +++++++
 snippets/c++-mode/lambda | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/snippets/c++-mode/forr b/snippets/c++-mode/forr
new file mode 100644
index 0000000000..685b97edb1
--- /dev/null
+++ b/snippets/c++-mode/forr
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: for range
+# key: forr
+# --
+for (${1:type} ${2:name} : ${3:containerName}) {
+    $0
+}
\ No newline at end of file
diff --git a/snippets/c++-mode/lambda b/snippets/c++-mode/lambda
new file mode 100644
index 0000000000..d7ade5b3f8
--- /dev/null
+++ b/snippets/c++-mode/lambda
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: lambda
+# key: lambda
+# --
+[${1:capture clause}](${2:parameters}) {
+    $0
+}
\ No newline at end of file



reply via email to

[Prev in Thread] Current Thread [Next in Thread]