mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -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. */
|
||||
if (checkforcmd(&p, "function", 2)) {
|
||||
if (*p == '!')
|
||||
if (*p == '!') {
|
||||
p = skipwhite(p + 1);
|
||||
}
|
||||
p += eval_fname_script(p);
|
||||
if (ASCII_ISALPHA(*p)) {
|
||||
free(trans_function_name(&p, TRUE, 0, NULL));
|
||||
if (*skipwhite(p) == '(') {
|
||||
++nesting;
|
||||
indent += 2;
|
||||
}
|
||||
free(trans_function_name(&p, TRUE, 0, NULL));
|
||||
if (*skipwhite(p) == '(') {
|
||||
nesting++;
|
||||
indent += 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -189,7 +189,7 @@ static int included_patches[] = {
|
||||
//552,
|
||||
//551,
|
||||
//550,
|
||||
//549,
|
||||
549,
|
||||
//548 NA
|
||||
547,
|
||||
//546,
|
||||
|
Loading…
Reference in New Issue
Block a user