Added Anonymous Function (javascript) for UltiSnips. Supports $VISUAL.
This commit is contained in:
parent
743be1a6e0
commit
edc4eedf9a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user