(Emacs)~modified switch snippet in c/cc-mode

This commit is contained in:
2023-09-22 14:49:51 +01:00
parent 7ec779abb1
commit fce24d44ab
2 changed files with 2 additions and 11 deletions

View File

@@ -1,10 +0,0 @@
# -*- mode: snippet -*-
# name: switch
# --
switch (${1:ch}) {
case ${2:const}:
${3:a = b};
break;
${4:default:
${5:action}}
}

View File

@@ -2,5 +2,6 @@
# name: switch
# --
switch (${1:variable}) {
case ${2:value}: $0break;
default:
$0break;
}