From b99f13385cfd15e161b18f103a5e36469f49431f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 6 May 2023 08:56:00 +0800 Subject: vim-patch:8.2.1746: Vim9: cannot use "fina" for "finally" (#23497) Problem: Vim9: Cannot use "fina" for "finally". (Naruhiko Nishino) Solution: Specifically check for "fina". (closes vim/vim#7020) https://github.com/vim/vim/commit/373863ed48c02b5df52574aa7d50aeecb1037d40 :final is N/A. Co-authored-by: Bram Moolenaar --- test/old/testdir/test_trycatch.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/old/testdir/test_trycatch.vim b/test/old/testdir/test_trycatch.vim index 52a687ab4f..d60b793f1b 100644 --- a/test/old/testdir/test_trycatch.vim +++ b/test/old/testdir/test_trycatch.vim @@ -38,7 +38,7 @@ func T25_F() if loops == 2 try Xpath 'f' . loops - finally + final Xpath 'g' . loops endtry endif @@ -50,19 +50,20 @@ func T25_F() Xpath 'i' endfunc +" Also try using "fina" and "final" and "finall" as abbraviations. func T25_G() if 1 try Xpath 'A' call T25_F() Xpath 'B' - finally + fina Xpath 'C' endtry else try Xpath 'D' - finally + finall Xpath 'E' endtry endif -- cgit