comparison src/userfunc.c @ 24202:c50c5464e6dc v8.2.2642

patch 8.2.2642: Vim9: no clear error for wrong inline function Commit: https://github.com/vim/vim/commit/e98f60a5912d30db289231aed7d3a1d74beaae20 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 22 18:22:30 2021 +0100 patch 8.2.2642: Vim9: no clear error for wrong inline function Problem: Vim9: no clear error for wrong inline function. Solution: Check for something following the "{".
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Mar 2021 18:30:03 +0100
parents 5f3a2d31c48d
children 7a21b2581dce
comparison
equal deleted inserted replaced
24201:1b0ca859705b 24202:c50c5464e6dc
952 partial_T *pt; 952 partial_T *pt;
953 char_u *name; 953 char_u *name;
954 int lnum_save = -1; 954 int lnum_save = -1;
955 linenr_T sourcing_lnum_top = SOURCING_LNUM; 955 linenr_T sourcing_lnum_top = SOURCING_LNUM;
956 956
957 if (!ends_excmd2(*arg, skipwhite(*arg + 1)))
958 {
959 semsg(_(e_trailing_arg), *arg + 1);
960 return FAIL;
961 }
962
957 CLEAR_FIELD(eap); 963 CLEAR_FIELD(eap);
958 eap.cmdidx = CMD_block; 964 eap.cmdidx = CMD_block;
959 eap.forceit = FALSE; 965 eap.forceit = FALSE;
960 eap.arg = *arg + 1;
961 eap.cmdlinep = &cmdline; 966 eap.cmdlinep = &cmdline;
962 eap.skip = !evaluate; 967 eap.skip = !evaluate;
963 if (evalarg->eval_cctx != NULL) 968 if (evalarg->eval_cctx != NULL)
964 fill_exarg_from_cctx(&eap, evalarg->eval_cctx); 969 fill_exarg_from_cctx(&eap, evalarg->eval_cctx);
965 else 970 else