(Emacs)~modified switch snippet in c/cc-mode
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
# -*- mode: snippet -*-
|
|
||||||
# name: switch
|
|
||||||
# --
|
|
||||||
switch (${1:ch}) {
|
|
||||||
case ${2:const}:
|
|
||||||
${3:a = b};
|
|
||||||
break;
|
|
||||||
${4:default:
|
|
||||||
${5:action}}
|
|
||||||
}
|
|
||||||
@@ -2,5 +2,6 @@
|
|||||||
# name: switch
|
# name: switch
|
||||||
# --
|
# --
|
||||||
switch (${1:variable}) {
|
switch (${1:variable}) {
|
||||||
case ${2:value}: $0break;
|
default:
|
||||||
|
$0break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user