Skip to content

Commit

Permalink
Two more c++-mode snippets: forr and lambda (#472)
Browse files Browse the repository at this point in the history
* c++-mode: add fore and lambda keywords

* c++-mode: rename fore to forr
  • Loading branch information
zhchuu authored Jan 5, 2024
1 parent ab935d7 commit baf82bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions snippets/c++-mode/forr
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: for range
# key: forr
# --
for (${1:type} ${2:name} : ${3:containerName}) {
$0
}
7 changes: 7 additions & 0 deletions snippets/c++-mode/lambda
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: lambda
# key: lambda
# --
[${1:capture clause}](${2:parameters}) {
$0
}

0 comments on commit baf82bd

Please sign in to comment.