From 5da36052a4bb0f3a9747ec3a8ab9d85e058e39fa Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 27 Dec 2021 15:39:57 +0000 Subject: patch 8.2.3913: help for expressions does not mention Vim9 syntax Problem: Help for expressions does not mention Vim9 syntax. Solution: Add the rules for Vim9 to the expression help. Rename functions to match the help. --- src/version.c | 2 ++ src/vim9expr.c | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/version.c b/src/version.c index 06a0a33700..658d9be04f 100644 --- a/src/version.c +++ b/src/version.c @@ -749,6 +749,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3913, /**/ 3912, /**/ diff --git a/src/vim9expr.c b/src/vim9expr.c index 6a1faf839f..1e87b8eae1 100644 --- a/src/vim9expr.c +++ b/src/vim9expr.c @@ -1883,7 +1883,7 @@ compile_subscript( * trailing ->name() method call */ static int -compile_expr7( +compile_expr8( char_u **arg, cctx_T *cctx, ppconst_T *ppconst) @@ -2119,10 +2119,10 @@ compile_expr7( } /* - * expr7: runtime type check / conversion + * expr8: runtime type check / conversion */ static int -compile_expr7t(char_u **arg, cctx_T *cctx, ppconst_T *ppconst) +compile_expr7(char_u **arg, cctx_T *cctx, ppconst_T *ppconst) { type_T *want_type = NULL; @@ -2147,7 +2147,7 @@ compile_expr7t(char_u **arg, cctx_T *cctx, ppconst_T *ppconst) return FAIL; } - if (compile_expr7(arg, cctx, ppconst) == FAIL) + if (compile_expr8(arg, cctx, ppconst) == FAIL) return FAIL; if (want_type != NULL) @@ -2182,7 +2182,7 @@ compile_expr6(char_u **arg, cctx_T *cctx, ppconst_T *ppconst) int ppconst_used = ppconst->pp_used; // get the first expression - if (compile_expr7t(arg, cctx, ppconst) == FAIL) + if (compile_expr7(arg, cctx, ppconst) == FAIL) return FAIL; /* @@ -2208,7 +2208,7 @@ compile_expr6(char_u **arg, cctx_T *cctx, ppconst_T *ppconst) return FAIL; // get the second expression - if (compile_expr7t(arg, cctx, ppconst) == FAIL) + if (compile_expr7(arg, cctx, ppconst) == FAIL) return FAIL; if (ppconst->pp_used == ppconst_used + 2 -- cgit v1.2.3