Mercurial > vim
diff src/vim9.h @ 28035:9f8535cf6f1b v8.2.4542
patch 8.2.4542: Vim9: "break" inside try/catch not handled correctly
Commit: https://github.com/vim/vim/commit/873f8243f6feadec72d9bf6203e550cc1b66611a
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 10 21:53:44 2022 +0000
patch 8.2.4542: Vim9: "break" inside try/catch not handled correctly
Problem: Vim9: "break" inside try/catch not handled correctly.
Solution: First jump to :endtry. (closes https://github.com/vim/vim/issues/9927)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 10 Mar 2022 23:00:04 +0100 |
parents | 1012048eed26 |
children | 3bc0a639dfb0 |
line wrap: on
line diff
--- a/src/vim9.h +++ b/src/vim9.h @@ -121,7 +121,7 @@ typedef enum { ISN_CATCH, // drop v:exception ISN_FINALLY, // start of :finally block ISN_ENDTRY, // take entry off from ec_trystack - ISN_TRYCONT, // handle :continue inside a :try statement + ISN_TRYCONT, // handle :continue or :break inside a :try statement // more expression operations ISN_ADDLIST, // add two lists