Mercurial > vim
diff src/vim9compile.c @ 19894:ea4f8e789627 v8.2.0503
patch 8.2.0503: Vim9: some code is not tested
Commit: https://github.com/vim/vim/commit/585fea7b98b79f2c6d92fa8a2340e461aff805c8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 2 22:33:21 2020 +0200
patch 8.2.0503: Vim9: some code is not tested
Problem: Vim9: some code is not tested.
Solution: Add tests. Fix uncovered problems.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 02 Apr 2020 22:45:04 +0200 |
parents | 5feb426d2ea1 |
children | 92177b596695 |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4972,6 +4972,7 @@ compile_finally(char_u *arg, cctx_T *cct // Fill in the "end" label in jumps at the end of the blocks. compile_fill_jump_to_end(&scope->se_u.se_try.ts_end_label, cctx); + isn->isn_arg.try.try_finally = instr->ga_len; if (scope->se_u.se_try.ts_catch_label != 0) { // Previous catch without match jumps here @@ -4979,7 +4980,6 @@ compile_finally(char_u *arg, cctx_T *cct isn->isn_arg.jump.jump_where = instr->ga_len; } - isn->isn_arg.try.try_finally = instr->ga_len; // TODO: set index in ts_finally_label jumps return arg; @@ -5350,13 +5350,7 @@ compile_def_function(ufunc_T *ufunc, int line = p; continue; } - if (ea.cmdidx == CMD_let) - { - line = compile_assignment(ea.cmd, &ea, CMD_SIZE, &cctx); - if (line == NULL) - goto erret; - continue; - } + // CMD_let cannot happen, compile_assignment() above is used iemsg("Command from find_ex_command() not handled"); goto erret; } @@ -5464,6 +5458,7 @@ compile_def_function(ufunc_T *ufunc, int } if (line == NULL) goto erret; + line = skipwhite(line); if (cctx.ctx_type_stack.ga_len < 0) {