patch 7.4.2076
Problem: Syntax error when dict has '>' key.
Solution: Check for endchar. (Ken Takata)
diff --git a/src/userfunc.c b/src/userfunc.c
index ea15423..9ffafc3 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -150,7 +150,9 @@
hash_init(&func_hashtab);
}
-/* Get function arguments. */
+/*
+ * Get function arguments.
+ */
static int
get_function_args(
char_u **argp,
@@ -232,7 +234,9 @@
break;
}
}
- ++p; /* skip the ')' */
+ if (*p != endchar)
+ goto err_ret;
+ ++p; /* skip "endchar" */
*argp = p;
return OK;