comparison src/userfunc.c @ 20142:fe8d0a4344df v8.2.0626

patch 8.2.0626: Vim9: wrong syntax of function in Vim9 script Commit: https://github.com/vim/vim/commit/f93c7fea084a99848d512ff2732041d4b41d93c8 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 23 22:16:53 2020 +0200 patch 8.2.0626: Vim9: wrong syntax of function in Vim9 script Problem: Vim9: wrong syntax of function in Vim9 script. Solution: Give error for missing space. Implement :echomsg and :echoerr. (closes #5670)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Apr 2020 22:30:03 +0200
parents d0a9766167ab
children c21a1d91f78d
comparison
equal deleted inserted replaced
20141:3be7dea7ddcc 20142:fe8d0a4344df
126 arg_copy == NULL ? arg : arg_copy); 126 arg_copy == NULL ? arg : arg_copy);
127 p = skipwhite(p); 127 p = skipwhite(p);
128 } 128 }
129 if (*p == ':') 129 if (*p == ':')
130 { 130 {
131 type = skipwhite(p + 1); 131 ++p;
132 if (!VIM_ISWHITE(*p))
133 {
134 semsg(_(e_white_after), ":");
135 return arg;
136 }
137 type = skipwhite(p);
132 p = skip_type(type); 138 p = skip_type(type);
133 type = vim_strnsave(type, p - type); 139 type = vim_strnsave(type, p - type);
134 } 140 }
135 else if (*skipwhite(p) != '=') 141 else if (*skipwhite(p) != '=')
136 { 142 {