Skip to content

Commit edc4eed

Browse files
committed
Added Anonymous Function (javascript) for UltiSnips. Supports $VISUAL.
1 parent 743be1a commit edc4eed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

UltiSnips/javascript.snippets

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ ${1:var }${2:function_name} = function $2(${3}) {
5858
};
5959
endsnippet
6060

61+
snippet af "Anonymous Function" i
62+
function($1) {
63+
${VISUAL}$0
64+
}
65+
endsnippet
66+
6167
snippet iife "Immediately-Invoked Function Expression (iife)"
6268
(function(${1:window}) {
6369
${VISUAL}$0

0 commit comments

Comments
 (0)