Hi,

I had a report that dict keys staring with '>' cause errors after 7.4.2044:

:let x = {'>' : ''}
E125: Illegal argument: '>' : ''}
E115: Missing quote: ' : ''}
E15: Invalid expression: {'>' : ''}

Attached patch fixes the problem.
When I split out the get_function_args() function from the ex_function()
function, I dropped the error check mistakenly.

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# Parent  9819756b26caf6e906711213040448321cdeb7d0

diff --git a/src/userfunc.c b/src/userfunc.c
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -234,7 +234,9 @@ get_function_args(
 	    break;
 	}
     }
-    ++p;	/* skip the ')' */
+    if (*p != endchar)
+	goto err_ret;
+    ++p;	/* skip "endchar" */
 
     *argp = p;
     return OK;

Raspunde prin e-mail lui