comparison src/userfunc.c @ 19826:293a22b677a8 v8.2.0469

patch 8.2.0469: Vim9: no error for missing ] after list Commit: https://github.com/vim/vim/commit/ee619e5bc0992e818f2d9540b093b769b9c27651 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 28 21:38:06 2020 +0100 patch 8.2.0469: Vim9: no error for missing ] after list Problem: Vim9: no error for missing ] after list. Solution: Add error message. Add more tests.
author Bram Moolenaar <Bram@vim.org>
date Sat, 28 Mar 2020 21:45:06 +0100
parents d64f403289db
children 4d033d36ba23
comparison
equal deleted inserted replaced
19825:17feab93763a 19826:293a22b677a8
348 if (ret == FAIL) 348 if (ret == FAIL)
349 goto errret; 349 goto errret;
350 e = *arg; 350 e = *arg;
351 *arg = skipwhite(*arg); 351 *arg = skipwhite(*arg);
352 if (**arg != '}') 352 if (**arg != '}')
353 {
354 semsg(_("E451: Expected }: %s"), *arg);
353 goto errret; 355 goto errret;
356 }
354 ++*arg; 357 ++*arg;
355 358
356 if (evaluate) 359 if (evaluate)
357 { 360 {
358 int len, flags = 0; 361 int len, flags = 0;