comparison src/ex_docmd.c @ 23239:a789a688e37d v8.2.2165

patch 8.2.2165: Vim9: assignment to dict member does not work Commit: https://github.com/vim/vim/commit/8f22f5c3aa0aa96e3843a57f29405625d8514c74 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 19 22:10:13 2020 +0100 patch 8.2.2165: Vim9: assignment to dict member does not work Problem: Vim9: assignment to dict member does not work. Solution: Fix recognizing dict member. (closes https://github.com/vim/vim/issues/7484)
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Dec 2020 22:45:03 +0100
parents d998222d314d
children a84e7abb0c92
comparison
equal deleted inserted replaced
23238:5945735ad4af 23239:a789a688e37d
3330 { 3330 {
3331 char_u *after = p; 3331 char_u *after = p;
3332 3332
3333 // When followed by "=" or "+=" then it is an assignment. 3333 // When followed by "=" or "+=" then it is an assignment.
3334 ++emsg_silent; 3334 ++emsg_silent;
3335 if (*after == '.')
3336 after = skipwhite(after + 1);
3335 if (skip_expr(&after, NULL) == OK) 3337 if (skip_expr(&after, NULL) == OK)
3336 after = skipwhite(after); 3338 after = skipwhite(after);
3337 else 3339 else
3338 after = (char_u *)""; 3340 after = (char_u *)"";
3339 if (*after == '=' || (*after != NUL && after[1] == '=') 3341 if (*after == '=' || (*after != NUL && after[1] == '=')