Correct js vf ${1} snippet syntax error

Use of ${1} twice rather than ${1} followed by $1 caused vim-snipmate to skip this field.
This commit is contained in:
Louis Pilfold 2014-09-16 09:24:10 +01:00
parent 00c1711fb6
commit 5aad7a4467

View File

@ -15,7 +15,7 @@ snippet f
}
# Function assigned to variable
snippet vf
var ${1} = function ${1}(${2}) {
var ${1:function_name} = function $1(${2}) {
${0}
};
# Immediate function