Patch 8.2.4676

5 views
Skip to first unread message

Bram Moolenaar

unread,
Apr 3, 2022, 11:59:56 AM4/3/22
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages