add "switch" snippet to js-mode (#217)

Inspired by other language modes (go, cc, php, etc.).
This commit is contained in:
ybiquitous 2017-09-16 00:57:11 +09:00 committed by Andrea Crotti
parent 00e4e12922
commit 643d6a0e10
1 changed files with 10 additions and 0 deletions

10
snippets/js-mode/switch Normal file
View File

@ -0,0 +1,10 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: switch
# key: sw
# --
switch (${1:condition}) {
case ${2:expression}:
$0
break;
default:
}