javascript snippet bugfixes: some of them didn't need semicolons. some of them didn't space properly.
This commit is contained in:
parent
11a541c5cd
commit
c2c75968d7
@ -1,5 +1,5 @@
|
|||||||
snippet :f
|
snippet :f
|
||||||
${1:method_name}: function(${2:attribute}){
|
${1:method_name}: function(${2:attribute}) {
|
||||||
${0}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -16,19 +16,23 @@ snippet proto
|
|||||||
|
|
||||||
|
|
||||||
snippet f
|
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}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user