javascript snippet bugfixes: some of them didn't need semicolons. some of them didn't space properly.

This commit is contained in:
ujihisa 2012-09-22 22:19:54 -07:00
parent 11a541c5cd
commit c2c75968d7

View File

@ -19,16 +19,20 @@ snippet f
function(${1}) { ${0:$TM_SELECTED_TEXT} }; function(${1}) { ${0:$TM_SELECTED_TEXT} };
snippet if snippet if
if (${1:true}) {${0:$TM_SELECTED_TEXT}}; if (${1:true}) {
${0:$TM_SELECTED_TEXT}
}
snippet ife snippet ife
if (${1:true}) {${0:$TM_SELECTED_TEXT}} else{}; if (${1:true}) {
${0:$TM_SELECTED_TEXT}
} else {
}
snippet for snippet for
for (var ${2:i}=0; $2 < ${1:Things}.length; $2++) { for (var ${2:i}=0; $2 < ${1:Things}.length; $2++) {
${0} ${0}
}; }
snippet forin snippet forin
for (var ${2:i} in ${1:Things}) { for (var ${2:i} in ${1:Things}) {