mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 9.0.1558: wrong error for unreachable code after :throw
Problem: Wrong error for unreachable code after :throw. Solution: Adjust the error message.
This commit is contained in:
@@ -842,6 +842,7 @@ struct cctx_S {
|
||||
skip_T ctx_skip;
|
||||
scope_T *ctx_scope; // current scope, NULL at toplevel
|
||||
int ctx_had_return; // last seen statement was "return"
|
||||
int ctx_had_throw; // last seen statement was "throw"
|
||||
|
||||
cctx_T *ctx_outer; // outer scope for lambda or nested
|
||||
// function
|
||||
|
Reference in New Issue
Block a user