0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.4.298

Problem:    Can't have a funcref start with "t:".
Solution:   Add "t" to the list of accepted names. (Yukihiro Nakadaira)
This commit is contained in:
Bram Moolenaar
2014-05-22 14:19:56 +02:00
parent 050fe7ebad
commit cbc67723bd
2 changed files with 4 additions and 1 deletions

View File

@@ -21064,7 +21064,8 @@ var_check_func_name(name, new_var)
char_u *name; /* points to start of variable name */ char_u *name; /* points to start of variable 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:. */
if (!(vim_strchr((char_u *)"wbst", name[0]) != NULL && name[1] == ':')
&& !ASCII_ISUPPER((name[0] != NUL && name[1] == ':') && !ASCII_ISUPPER((name[0] != NUL && name[1] == ':')
? name[2] : name[0])) ? name[2] : name[0]))
{ {

View File

@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
298,
/**/ /**/
297, 297,
/**/ /**/