1
0
forked from aniani/vim

patch 8.2.3865: Vim9: compiler complains about using "try" as a struct member

Problem:    Vim9: compiler complains about using "try" as a struct member.
Solution:   Rename "try" to "tryref".
This commit is contained in:
Bram Moolenaar
2021-12-21 09:42:09 +00:00
parent 6f79e614b2
commit 0d807107b6
5 changed files with 20 additions and 18 deletions

View File

@@ -112,7 +112,7 @@ typedef enum {
// loop
ISN_FOR, // get next item from a list, uses isn_arg.forloop
ISN_TRY, // add entry to ec_trystack, uses isn_arg.try
ISN_TRY, // add entry to ec_trystack, uses isn_arg.tryref
ISN_THROW, // pop value of stack, store in v:exception
ISN_PUSHEXC, // push v:exception
ISN_CATCH, // drop v:exception
@@ -429,7 +429,7 @@ struct isn_S {
jump_T jump;
jumparg_T jumparg;
forloop_T forloop;
try_T try;
try_T tryref;
trycont_T trycont;
cbfunc_T bfunc;
cdfunc_T dfunc;