- Improved javascript snippet file.

This commit is contained in:
Shougo Matsushita 2012-10-26 10:46:05 +09:00
parent f46f36837e
commit 2a4db10f9b
2 changed files with 17 additions and 2 deletions

View File

@ -1,49 +1,61 @@
snippet :f
options head
${1:method_name}: function(${2:attribute}) {
${0}
}
snippet func
alias function
snippet function
alias func
options word
function ${1:function_name}(${2:argument}) {
${0:// body...}
}
snippet proto
options head
${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {
${0:// body...}
};
snippet f
options head
function(${1}) { ${0:$TM_SELECTED_TEXT} };
snippet if
options head
if (${1:true}) {
${0:$TM_SELECTED_TEXT}
}
snippet ife
options head
if (${1:true}) {
${0:$TM_SELECTED_TEXT}
} else {
}
snippet for
options head
for (var ${2:i}=0; $2 < ${1:Things}.length; $2++) {
${0}
}
snippet forin
options head
for (var ${2:i} in ${1:Things}) {
${0}
};
snippet ;,
options word
${1:value_name}:${0:value},
snippet key
options word
${1:key}: "${2:value}"}${3:, }
snippet timeout
options word
setTimeout(function() {${0}}${2:}, ${1:10});

View File

@ -454,6 +454,9 @@ snippet *neosnippet-unite-action-snippet*
==============================================================================
CHANGELOG *neosnippet-changelog*
2012-10-26
- Improved javascript snippet file.
2012-10-25
- Deleted sandbox execution.