mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
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:
parent
4ff4b9306d
commit
898f01dee1
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ static int included_patches[] = {
|
|||||||
//552,
|
//552,
|
||||||
//551,
|
//551,
|
||||||
//550,
|
//550,
|
||||||
//549,
|
549,
|
||||||
//548 NA
|
//548 NA
|
||||||
547,
|
547,
|
||||||
//546,
|
//546,
|
||||||
|
Loading…
Reference in New Issue
Block a user