0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

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)
This commit is contained in:
Bram Moolenaar
2020-09-26 17:20:53 +02:00
parent d47f50b331
commit 373863ed48
4 changed files with 12 additions and 5 deletions

View File

@@ -316,7 +316,7 @@ def Test_try_catch()
endtry
catch /wrong/
add(l, 'caught')
finally
fina
add(l, 'finally')
endtry
assert_equal(['1', 'caught', 'finally'], l)
@@ -526,7 +526,7 @@ enddef
def ReturnFinally(): string
try
return 'intry'
finally
finall
g:in_finally = 'finally'
endtry
return 'end'