Added Anonymous Function (javascript) for UltiSnips. Supports $VISUAL.

This commit is contained in:
Sam Shepherd 2016-03-10 10:09:21 -06:00
parent 743be1a6e0
commit edc4eedf9a

View File

@ -58,6 +58,12 @@ ${1:var }${2:function_name} = function $2(${3}) {
};
endsnippet
snippet af "Anonymous Function" i
function($1) {
${VISUAL}$0
}
endsnippet
snippet iife "Immediately-Invoked Function Expression (iife)"
(function(${1:window}) {
${VISUAL}$0