diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-06 08:56:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-06 08:56:00 +0800 |
commit | b99f13385cfd15e161b18f103a5e36469f49431f (patch) | |
tree | d2365283fdb9a76e9e5a7f1c1698d3e853c02bf7 | |
parent | b97d2abb216477dddfca9ce74077d157045f22cf (diff) | |
download | rneovim-b99f13385cfd15e161b18f103a5e36469f49431f.tar.gz rneovim-b99f13385cfd15e161b18f103a5e36469f49431f.tar.bz2 rneovim-b99f13385cfd15e161b18f103a5e36469f49431f.zip |
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 <Bram@vim.org>
-rw-r--r-- | test/old/testdir/test_trycatch.vim | 7 |
1 files 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 |