comparison src/vim9compile.c @ 21028:7acceb76669f v8.2.1065

patch 8.2.1065: Vim9: no line break allowed inside a list Commit: https://github.com/vim/vim/commit/7147820cb978f5b179cfec2f9d8b7774e28d43e0 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 26 22:46:27 2020 +0200 patch 8.2.1065: Vim9: no line break allowed inside a list Problem: Vim9: no line break allowed inside a list. Solution: Handle line break inside a list in Vim9 script.
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Jun 2020 23:00:05 +0200
parents ae4b1d497a06
children 2f8b0812819f
comparison
equal deleted inserted replaced
21027:f7d632ae239d 21028:7acceb76669f
2987 2987
2988 if (p == arg && *arg == '[') 2988 if (p == arg && *arg == '[')
2989 { 2989 {
2990 2990
2991 // Can be "[1, 2, 3]->Func()". 2991 // Can be "[1, 2, 3]->Func()".
2992 if (get_list_tv(&p, &rettv, 0, FALSE) == FAIL) 2992 if (get_list_tv(&p, &rettv, NULL, FALSE) == FAIL)
2993 p = arg; 2993 p = arg;
2994 } 2994 }
2995 else if (p == arg && *arg == '#' && arg[1] == '{') 2995 else if (p == arg && *arg == '#' && arg[1] == '{')
2996 { 2996 {
2997 // Can be "#{a: 1}->Func()". 2997 // Can be "#{a: 1}->Func()".