Merge pull request #697 from shepherdsam/master

Added Anonymous Function (javascript) for UltiSnips. Supports $VISUAL.
This commit is contained in:
Louis Pilfold 2016-03-10 17:23:30 +00:00
commit 66b6d7c54d

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