Mercurial > vim
comparison src/eval.c @ 23072:4b398a229b0b v8.2.2082
patch 8.2.2082: Vim9: can still use the depricated #{} dict syntax
Commit: https://github.com/vim/vim/commit/e0de171ecd2ff7acd56deda2cf81f0d13a69c803
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 2 17:36:54 2020 +0100
patch 8.2.2082: Vim9: can still use the depricated #{} dict syntax
Problem: Vim9: can still use the depricated #{} dict syntax.
Solution: Remove support for #{} in Vim9 script. (closes https://github.com/vim/vim/issues/7406, closes https://github.com/vim/vim/issues/7405)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 02 Dec 2020 17:45:05 +0100 |
parents | 75241f4377a4 |
children | b6aadb0b3a56 |
comparison
equal
deleted
inserted
replaced
23071:20dac5998fa6 | 23072:4b398a229b0b |
---|---|
3252 break; | 3252 break; |
3253 | 3253 |
3254 /* | 3254 /* |
3255 * Dictionary: #{key: val, key: val} | 3255 * Dictionary: #{key: val, key: val} |
3256 */ | 3256 */ |
3257 case '#': if ((*arg)[1] == '{') | 3257 case '#': if (!in_vim9script() && (*arg)[1] == '{') |
3258 { | 3258 { |
3259 ++*arg; | 3259 ++*arg; |
3260 ret = eval_dict(arg, rettv, evalarg, TRUE); | 3260 ret = eval_dict(arg, rettv, evalarg, TRUE); |
3261 } | 3261 } |
3262 else | 3262 else |