diff --git a/UltiSnips/javascript.snippets b/UltiSnips/javascript.snippets index e4e7f7a..11f3add 100644 --- a/UltiSnips/javascript.snippets +++ b/UltiSnips/javascript.snippets @@ -51,11 +51,18 @@ function ${1:function_name} (${2:argument}) { endsnippet snippet ife "if ___ else" -if (${1:true}) {$0} else{}; +if (${1:condition}) { + ${2://code} +} +else { + ${3://code} +} endsnippet snippet if "if" -if (${1:true}) {$0}; +if (${1:condition}) { + ${0://code} +} endsnippet snippet timeout "setTimeout function" diff --git a/doc/UltiSnips.txt b/doc/UltiSnips.txt index d64d6a4..d1cf4bd 100644 --- a/doc/UltiSnips.txt +++ b/doc/UltiSnips.txt @@ -1307,6 +1307,7 @@ Contributors listed in chronological order: Steven Humphrey (shumphrey) Björn Winckler (b4winckler) David Brown (Nali4Freedom) + Harry Xu (harryxu) Thank you for your support.