vim-patch:7.4.298 #815

Problem:    Can't have a funcref start with "t:".
Solution:   Add "t" to the list of accepted names. (Yukihiro Nakadaira)

https://code.google.com/p/vim/source/detail?r=156f891d520e93eab5d3ce02784660fb13a3b0d3
This commit is contained in:
oni-link
2014-05-22 16:14:32 +02:00
committed by Justin M. Keyes
parent 59fc9e3aec
commit 937c78fe2e
2 changed files with 6 additions and 6 deletions

View File

@@ -16114,11 +16114,11 @@ var_check_func_name (
int new_var /* TRUE when creating the variable */ int new_var /* TRUE when creating the variable */
) )
{ {
if (!(vim_strchr((char_u *)"wbs", name[0]) != NULL && name[1] == ':') // Allow for w: b: s: and t:.
&& !ASCII_ISUPPER((name[0] != NUL && name[1] == ':') if (!(vim_strchr((char_u *)"wbst", name[0]) != NULL && name[1] == ':')
? name[2] : name[0])) { && !ASCII_ISUPPER((name[0] != NUL && name[1] == ':') ? name[2]
EMSG2(_("E704: Funcref variable name must start with a capital: %s"), : name[0])) {
name); EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name);
return TRUE; return TRUE;
} }
/* Don't allow hiding a function. When "v" is not NULL we might be /* Don't allow hiding a function. When "v" is not NULL we might be

View File

@@ -220,7 +220,7 @@ static int included_patches[] = {
//301, //301,
//300, //300,
//299, //299,
//298, 298,
//297, //297,
//296, //296,
//295, //295,