patch 8.2.1746: Vim9: cannot use "fina" for "finally"
Problem: Vim9: Cannot use "fina" for "finally". (Naruhiko Nishino)
Solution: Specifically check for "fina". (closes #7020)
diff --git a/src/testdir/test_trycatch.vim b/src/testdir/test_trycatch.vim
index 1f1681f..9f670f7 100644
--- a/src/testdir/test_trycatch.vim
+++ b/src/testdir/test_trycatch.vim
@@ -37,7 +37,7 @@
if loops == 2
try
Xpath 'f' . loops
- finally
+ final
Xpath 'g' . loops
endtry
endif
@@ -49,19 +49,20 @@
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