summaryrefslogtreecommitdiff
path: root/src/vim9.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-12 16:18:18 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-12 16:18:18 +0000
commit53c296112edd8471eb63afbca03f96bad164c813 (patch)
tree78fca00247cb7492594d53fc797971e75af18843 /src/vim9.h
parentf5d639a8af719eb8ecb141b5c0890627e4d83134 (diff)
downloadvim-git-53c296112edd8471eb63afbca03f96bad164c813.tar.gz
patch 8.2.4071: Vim9: no detection of return in try/endtryv8.2.4071
Problem: Vim9: no detection of return in try/endtry. (Dominique Pellé) Solution: Check if any of the blocks inside try/endtry did not end in return.
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vim9.h b/src/vim9.h
index 2ae3f4208..912af1f5d 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -594,6 +594,8 @@ typedef struct {
endlabel_T *ts_end_label; // jump to :finally or :endtry
int ts_catch_label; // instruction idx of last CATCH
int ts_caught_all; // "catch" without argument encountered
+ int ts_has_finally; // "finally" encountered
+ int ts_no_return; // one of the blocks did not end in return
} tryscope_T;
typedef enum {