Patch 8.2.4676 (after 8.2.4675)
Problem:    Test fails with different error.
Solution:   Add argument for :elseif.
Files:      src/testdir/test_vimscript.vim


*** ../vim-8.2.4675/src/testdir/test_vimscript.vim      2022-03-22 
21:14:51.756456002 +0000
--- src/testdir/test_vimscript.vim      2022-04-03 16:57:34.341166820 +0100
***************
*** 3025,3031 ****
  
    " :elseif without :if
    let code =<< trim END
!     elseif
    END
    call writefile(code, 'Xtest')
    call AssertException(['source Xtest'], 'Vim(elseif):E582: :elseif without 
:if')
--- 3025,3031 ----
  
    " :elseif without :if
    let code =<< trim END
!     elseif 1
    END
    call writefile(code, 'Xtest')
    call AssertException(['source Xtest'], 'Vim(elseif):E582: :elseif without 
:if')
***************
*** 3033,3039 ****
    " :elseif without :if
    let code =<< trim END
      while 1
!       elseif
      endwhile
    END
    call writefile(code, 'Xtest')
--- 3033,3039 ----
    " :elseif without :if
    let code =<< trim END
      while 1
!       elseif 1
      endwhile
    END
    call writefile(code, 'Xtest')
***************
*** 3043,3049 ****
    let code =<< trim END
      try
      finally
!       elseif
      endtry
    END
    call writefile(code, 'Xtest')
--- 3043,3049 ----
    let code =<< trim END
      try
      finally
!       elseif 1
      endtry
    END
    call writefile(code, 'Xtest')
***************
*** 3052,3058 ****
    " :elseif without :if
    let code =<< trim END
      try
!       elseif
      endtry
    END
    call writefile(code, 'Xtest')
--- 3052,3058 ----
    " :elseif without :if
    let code =<< trim END
      try
!       elseif 1
      endtry
    END
    call writefile(code, 'Xtest')
***************
*** 3063,3069 ****
      try
        throw "a"
      catch /a/
!       elseif
      endtry
    END
    call writefile(code, 'Xtest')
--- 3063,3069 ----
      try
        throw "a"
      catch /a/
!       elseif 1
      endtry
    END
    call writefile(code, 'Xtest')
*** ../vim-8.2.4675/src/version.c       2022-04-03 16:13:03.420370565 +0100
--- src/version.c       2022-04-03 16:58:37.881137187 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     4676,
  /**/

-- 
BRIDGEKEEPER: What is your favorite colour?
LAUNCELOT:    Blue.
BRIDGEKEEPER: Right.  Off you go.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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/20220403155951.F2BBA1C0561%40moolenaar.net.

Raspunde prin e-mail lui