neovim/neovim — pull request #1738 by fwalch (2014-12-25 11:33:01+00:00)
Title: [RFC] 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
```

Original patch:
```diff
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -22283,14 +22283,11 @@ ex_function(eap)
if (*p == '!')
p = skipwhite(p + 1);
p += eval_fname_script(p);
-	if (ASCII_ISALPHA(*p))
-	{
-	vim_free(trans_function_name(&p, TRUE, 0, NULL));
-	if (*skipwhite(p) == '(')
-	{
-	++nesting;
-	indent += 2;
-	}
+	vim_free(trans_function_name(&p, TRUE, 0, NULL));
+	if (*skipwhite(p) == '(')
+	{
+	++nesting;
+	indent += 2;
}
}

diff --git a/src/nvim/testdir/Make_amiga.mak b/src/nvim/testdir/Make_amiga.mak
--- a/src/nvim/testdir/Make_amiga.mak
+++ b/src/nvim/testdir/Make_amiga.mak
@@ -47,6 +47,7 @@ SCRIPTS = test1.out test3.out test4.out
test_listlbr.out \
test_listlbr_utf8.out \
test_mapping.out \
+	test_nested_function.out \
test_options.out \
test_qf_title.out \
test_signs.out \
@@ -184,6 +185,8 @@ test_eval.out: test_eval.in
test_insertcount.out: test_insertcount.in
test_listlbr.out: test_listlbr.in
test_listlbr_utf8.out: test_listlbr_utf8.in
+test_mapping.out: test_mapping.in
+test_nested_function.out: test_nested_function.in
test_options.out: test_options.in
test_qf_title.out: test_qf_title.in
test_signs.out: test_signs.in
diff --git a/src/nvim/testdir/Make_dos.mak b/src/nvim/testdir/Make_dos.mak
--- a/src/nvim/testdir/Make_dos.mak
+++ b/src/nvim/testdir/Make_dos.mak
@@ -46,6 +46,7 @@ SCRIPTS =	test3.out test4.out test5.out
test_listlbr.out \
test_listlbr_utf8.out \
test_mapping.out \
+	test_nested_function.out \
test_options.out \
test_qf_title.out \
test_signs.out \
diff --git a/src/nvim/testdir/Make_ming.mak b/src/nvim/testdir/Make_ming.mak
--- a/src/nvim/testdir/Make_ming.mak
+++ b/src/nvim/testdir/Make_ming.mak
@@ -68,6 +68,7 @@ SCRIPTS =	test3.out test4.out test5.out
test_listlbr.out \
test_listlbr_utf8.out \
test_mapping.out \
+	test_nested_function.out \
test_options.out \
test_qf_title.out \
test_signs.out \
diff --git a/src/nvim/testdir/Make_os2.mak b/src/nvim/testdir/Make_os2.mak
--- a/src/nvim/testdir/Make_os2.mak
+++ b/src/nvim/testdir/Make_os2.mak
@@ -48,6 +48,7 @@ SCRIPTS = test1.out test3.out test4.out
test_listlbr.out \
test_listlbr_utf8.out \
test_mapping.out \
+	test_nested_function.out \
test_options.out \
test_qf_title.out \
test_signs.out \
diff --git a/src/nvim/testdir/Make_vms.mms b/src/nvim/testdir/Make_vms.mms
--- a/src/nvim/testdir/Make_vms.mms
+++ b/src/nvim/testdir/Make_vms.mms
@@ -4,7 +4,7 @@
# Authors:	Zoltan Arpadffy,
#	Sandor Kopanyi,
#
-# Last change: 2014 Dec 08
+# Last change: 2014 Dec 13
#
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
# Edit the lines in the Configuration section below to select.
@@ -107,6 +107,7 @@ SCRIPT = test1.out test2.out test3.out
test_listlbr.out \
test_listlbr_utf8.out \
test_mapping.out \
+	test_nested_function.out \
test_options.out \
test_qf_title.out \
test_signs.out \
diff --git a/src/nvim/testdir/Makefile b/src/nvim/testdir/Makefile
--- a/src/nvim/testdir/Makefile
+++ b/src/nvim/testdir/Makefile
@@ -44,6 +44,7 @@ SCRIPTS = test1.out test2.out test3.out
test_listlbr.out \
test_listlbr_utf8.out \
test_mapping.out \
+	test_nested_function.out \
test_options.out \
test_qf_title.out \
test_signs.out \
diff --git a/src/nvim/version.c b/src/nvim/version.c
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 549,
+/**/
548,
/**/
547,
```