From 9a08f7decdf5e2a5e77009dadb18a07d0e143bd7 Mon Sep 17 00:00:00 2001 From: HIRAKI Satoru Date: Sun, 30 Sep 2012 19:53:44 +0900 Subject: [PATCH] improved tertiary conditional & improved switch --- snippets/javascript.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/javascript.snippets b/snippets/javascript.snippets index de50a0c..5b1caf7 100644 --- a/snippets/javascript.snippets +++ b/snippets/javascript.snippets @@ -32,11 +32,11 @@ snippet ife ${3} } # tertiary conditional -snippet t +snippet ter ${1:/* condition */} ? ${2:a} : ${3:b} # switch snippet switch - switch(${1:expression}) { + switch (${1:expression}) { case '${3:case}': ${4:// code} break;