vim-patch:7.4.549

Problem:    Function name not recognized correctly when inside a function.
Solution:   Don't check for an alpha character.

https://code.google.com/p/vim/source/detail?r=v7-4-549
This commit is contained in:
Florian Walch 2014-12-24 14:35:56 +01:00
parent 4ff4b9306d
commit 898f01dee1
2 changed files with 7 additions and 8 deletions

View File

@ -17580,15 +17580,14 @@ void ex_function(exarg_T *eap)
/* Check for defining a function inside this function. */ /* Check for defining a function inside this function. */
if (checkforcmd(&p, "function", 2)) { if (checkforcmd(&p, "function", 2)) {
if (*p == '!') if (*p == '!') {
p = skipwhite(p + 1); p = skipwhite(p + 1);
}
p += eval_fname_script(p); p += eval_fname_script(p);
if (ASCII_ISALPHA(*p)) { free(trans_function_name(&p, TRUE, 0, NULL));
free(trans_function_name(&p, TRUE, 0, NULL)); if (*skipwhite(p) == '(') {
if (*skipwhite(p) == '(') { nesting++;
++nesting; indent += 2;
indent += 2;
}
} }
} }

View File

@ -189,7 +189,7 @@ static int included_patches[] = {
//552, //552,
//551, //551,
//550, //550,
//549, 549,
//548 NA //548 NA
547, 547,
//546, //546,