Patch 8.2.4308
Problem:    Vim9: cannot list autoload function.
Solution:   Don't give an error for using # when listing a function.
            (closes #9703)
Files:      src/userfunc.c, src/testdir/test_vim9_import.vim


*** ../vim-8.2.4307/src/userfunc.c      2022-01-31 11:44:44.409529899 +0000
--- src/userfunc.c      2022-02-06 12:47:32.524686129 +0000
***************
*** 4232,4238 ****
                name = prefixed;
            }
        }
!       else if (vim9script && name != NULL
                                    && vim_strchr(name, AUTOLOAD_CHAR) != NULL)
        {
            
emsg(_(e_cannot_use_name_with_hash_in_vim9_script_use_export_instead));
--- 4232,4238 ----
                name = prefixed;
            }
        }
!       else if (paren && vim9script && name != NULL
                                    && vim_strchr(name, AUTOLOAD_CHAR) != NULL)
        {
            
emsg(_(e_cannot_use_name_with_hash_in_vim9_script_use_export_instead));
*** ../vim-8.2.4307/src/testdir/test_vim9_import.vim    2022-01-31 
18:59:09.840105788 +0000
--- src/testdir/test_vim9_import.vim    2022-02-06 12:48:07.528596149 +0000
***************
*** 1886,1891 ****
--- 1886,1895 ----
        assert_equal('other', g:result)
  
        assert_equal('arg', call('another.RetArg', ['arg']))
+ 
+       verbose function another.Getother
+       # should we disallow this?
+       verbose function another#Getother
    END
    v9.CheckScriptSuccess(lines)
  
*** ../vim-8.2.4307/src/version.c       2022-02-06 11:41:52.986808574 +0000
--- src/version.c       2022-02-06 12:47:10.924741669 +0000
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     4308,
  /**/

-- 
The Feynman problem solving Algorithm:
        1) Write down the problem
        2) Think real hard
        3) Write down the answer

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

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220206131211.88EC81C071D%40moolenaar.net.

Raspunde prin e-mail lui