comparison src/eval.c @ 21034:2f8b0812819f v8.2.1068

patch 8.2.1068: Vim9: no line break allowed inside a dict Commit: https://github.com/vim/vim/commit/8ea9390b78da9e34a20e7418712921397c0c1989 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 27 14:11:53 2020 +0200 patch 8.2.1068: Vim9: no line break allowed inside a dict Problem: Vim9: no line break allowed inside a dict. Solution: Handle line break inside a dict in Vim9 script.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Jun 2020 14:15:04 +0200
parents f80e822a310d
children d9e0db9b2b99
comparison
equal deleted inserted replaced
21033:3b26a83c36c3 21034:2f8b0812819f
2785 * Dictionary: #{key: val, key: val} 2785 * Dictionary: #{key: val, key: val}
2786 */ 2786 */
2787 case '#': if ((*arg)[1] == '{') 2787 case '#': if ((*arg)[1] == '{')
2788 { 2788 {
2789 ++*arg; 2789 ++*arg;
2790 ret = eval_dict(arg, rettv, flags, TRUE); 2790 ret = eval_dict(arg, rettv, evalarg, TRUE);
2791 } 2791 }
2792 else 2792 else
2793 ret = NOTDONE; 2793 ret = NOTDONE;
2794 break; 2794 break;
2795 2795
2797 * Lambda: {arg, arg -> expr} 2797 * Lambda: {arg, arg -> expr}
2798 * Dictionary: {'key': val, 'key': val} 2798 * Dictionary: {'key': val, 'key': val}
2799 */ 2799 */
2800 case '{': ret = get_lambda_tv(arg, rettv, evaluate); 2800 case '{': ret = get_lambda_tv(arg, rettv, evaluate);
2801 if (ret == NOTDONE) 2801 if (ret == NOTDONE)
2802 ret = eval_dict(arg, rettv, flags, FALSE); 2802 ret = eval_dict(arg, rettv, evalarg, FALSE);
2803 break; 2803 break;
2804 2804
2805 /* 2805 /*
2806 * Option value: &name 2806 * Option value: &name
2807 */ 2807 */