Spiros Bousbouras wrote:

> function Foo(arg1 , arg2)
>     echo "Hello world !"
> endfunction
> 
> When I try to source the above I get
> E475: Invalid argument: Foo(arg1 , arg2)
> If I change the first line to
> function Foo(arg1, arg2)
> it works fine. (If you can't see the difference between the two
> scroll below for the answer) So I was wondering is it supposed
> to work this way or is it a bug ?
> 
> 
> In the working version there is no space before the comma.

I my opinion it's ugly to have a space before the comma.  So let's keep
the behavior.  But the error message is misleading.  And it should be
mentioned in the documentation.  I'll make a note about that.

-- 
"Intelligence has much less practical application than you'd think."
                  -- Scott Adams, Dilbert.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to