refactor(ex_eval): cherry-pick CSF flags changes from v8.2.3099

4197828dc6

Cherry-pick the changes to existing flags values.
Required for v8.2.3478.

That patch mostly relates to Vim9script, but I'm careful not to mark it N/A in
case the flags have some use outside of Vim9 in the future.

Excludes CSF_FUNC_DEF (flag introduced in v8.2.1870 for Vim9's block scopes).
This commit is contained in:
Sean Dewar 2021-10-09 02:52:21 +01:00 committed by zeertzjq
parent a25c35d6e4
commit 6415051796

View File

@ -14,9 +14,9 @@
#define CSF_TRY 0x0100 // is a ":try" #define CSF_TRY 0x0100 // is a ":try"
#define CSF_FINALLY 0x0200 // ":finally" has been passed #define CSF_FINALLY 0x0200 // ":finally" has been passed
#define CSF_THROWN 0x0400 // exception thrown to this try conditional #define CSF_THROWN 0x0800 // exception thrown to this try conditional
#define CSF_CAUGHT 0x0800 // exception caught by this try conditional #define CSF_CAUGHT 0x1000 // exception caught by this try conditional
#define CSF_SILENT 0x1000 // "emsg_silent" reset by ":try" #define CSF_SILENT 0x2000 // "emsg_silent" reset by ":try"
// Note that CSF_ELSE is only used when CSF_TRY and CSF_WHILE are unset // 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. // (an ":if"), and CSF_SILENT is only used when CSF_TRY is set.