Merge pull request #697 from shepherdsam/master
Added Anonymous Function (javascript) for UltiSnips. Supports $VISUAL.
This commit is contained in:
commit
66b6d7c54d
@ -58,6 +58,12 @@ ${1:var }${2:function_name} = function $2(${3}) {
|
|||||||
};
|
};
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet af "Anonymous Function" i
|
||||||
|
function($1) {
|
||||||
|
${VISUAL}$0
|
||||||
|
}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet iife "Immediately-Invoked Function Expression (iife)"
|
snippet iife "Immediately-Invoked Function Expression (iife)"
|
||||||
(function(${1:window}) {
|
(function(${1:window}) {
|
||||||
${VISUAL}$0
|
${VISUAL}$0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user