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:
parent
00c1711fb6
commit
5aad7a4467
@ -15,7 +15,7 @@ snippet f
|
|||||||
}
|
}
|
||||||
# Function assigned to variable
|
# Function assigned to variable
|
||||||
snippet vf
|
snippet vf
|
||||||
var ${1} = function ${1}(${2}) {
|
var ${1:function_name} = function $1(${2}) {
|
||||||
${0}
|
${0}
|
||||||
};
|
};
|
||||||
# Immediate function
|
# Immediate function
|
||||||
|
Loading…
Reference in New Issue
Block a user