Initial commit.
This commit is contained in:
11
.emacs.d/elpa/yasnippet-20160131.948/snippets/cc-mode/switch
Normal file
11
.emacs.d/elpa/yasnippet-20160131.948/snippets/cc-mode/switch
Normal file
@@ -0,0 +1,11 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name : switch (...) { case : ... default: ...}
|
||||
# key: switch
|
||||
# --
|
||||
switch (${1:expr}) {
|
||||
case ${2:constexpr}:${3: \{}
|
||||
$0
|
||||
break;
|
||||
${3:$(if (string-match "\{" yas-text) "\}\n" "")}default:
|
||||
break;
|
||||
}
|
Reference in New Issue
Block a user