improved tertiary conditional & improved switch

This commit is contained in:
HIRAKI Satoru 2012-09-30 19:53:44 +09:00
parent 1ec3397e23
commit 9a08f7decd

View File

@ -32,11 +32,11 @@ snippet ife
${3} ${3}
} }
# tertiary conditional # tertiary conditional
snippet t snippet ter
${1:/* condition */} ? ${2:a} : ${3:b} ${1:/* condition */} ? ${2:a} : ${3:b}
# switch # switch
snippet switch snippet switch
switch(${1:expression}) { switch (${1:expression}) {
case '${3:case}': case '${3:case}':
${4:// code} ${4:// code}
break; break;