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)

373863ed48

:final is N/A.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2023-05-06 08:56:00 +08:00
committed by GitHub
parent b97d2abb21
commit b99f13385c

View File

@@ -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