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 if loops == 2
try try
Xpath 'f' . loops Xpath 'f' . loops
finally final
Xpath 'g' . loops Xpath 'g' . loops
endtry endtry
endif endif
@@ -50,19 +50,20 @@ func T25_F()
Xpath 'i' Xpath 'i'
endfunc endfunc
" Also try using "fina" and "final" and "finall" as abbraviations.
func T25_G() func T25_G()
if 1 if 1
try try
Xpath 'A' Xpath 'A'
call T25_F() call T25_F()
Xpath 'B' Xpath 'B'
finally fina
Xpath 'C' Xpath 'C'
endtry endtry
else else
try try
Xpath 'D' Xpath 'D'
finally finall
Xpath 'E' Xpath 'E'
endtry endtry
endif endif