Make self calling function snippet ignore scf from plugin

Buddy Sandidge 11 years ago
parent 5b3bfd7950
commit 32203297f6

@ -1,10 +1,10 @@
snippet f "function" snippet f "function"
function ${1:function_name} (${2:argument}) { function ${1:function_name}(${2:argument}) {
${VISUAL}$0 ${VISUAL}$0
} }
endsnippet endsnippet
snippet scf "self calling function" snippet scf "self calling function" !
(function (${1:argument}) { (function (${1:argument}) {
${VISUAL}$0 ${VISUAL}$0
}(${2:$1})); }(${2:$1}));

Loading…
Cancel
Save