summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-04 14:47:30 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-04 14:47:30 +0200
commit4197828dc666f2d258594f7f9461534d23cc50e4 (patch)
treef79b33ad12fa19fa6442bd59f0b2b882e58eafb0 /src/structs.h
parent999db2346b61e6f6e6fde2d0b56f4646a46b727d (diff)
downloadvim-git-8.2.3099.tar.gz
patch 8.2.3099: Vim9: missing catch/finally not reported at script levelv8.2.3099
Problem: Vim9: missing catch/finally not reported at script level. Solution: Give an error. (closes #8487)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/structs.h b/src/structs.h
index be4082b93..f1f8f3258 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -936,13 +936,14 @@ typedef struct {
# define CSF_TRY 0x0100 // is a ":try"
# define CSF_FINALLY 0x0200 // ":finally" has been passed
-# define CSF_THROWN 0x0400 // exception thrown to this try conditional
-# define CSF_CAUGHT 0x0800 // exception caught by this try conditional
-# define CSF_SILENT 0x1000 // "emsg_silent" reset by ":try"
+# define CSF_CATCH 0x0400 // ":catch" has been seen
+# define CSF_THROWN 0x0800 // exception thrown to this try conditional
+# define CSF_CAUGHT 0x1000 // exception caught by this try conditional
+# define CSF_SILENT 0x2000 // "emsg_silent" reset by ":try"
// Note that CSF_ELSE is only used when CSF_TRY and CSF_WHILE are unset
// (an ":if"), and CSF_SILENT is only used when CSF_TRY is set.
//
-#define CSF_FUNC_DEF 0x2000 // a function was defined in this block
+#define CSF_FUNC_DEF 0x4000 // a function was defined in this block
/*
* What's pending for being reactivated at the ":endtry" of this try