Mercurial > vim
comparison src/proto/dict.pro @ 23088:285cde4b8d0e v8.2.2090
patch 8.2.2090: Vim9: dict does not accept a key in quotes
Commit: https://github.com/vim/vim/commit/c5e6a7179d7dee4315b412b56e172bb1ff092d3e
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 4 19:12:14 2020 +0100
patch 8.2.2090: Vim9: dict does not accept a key in quotes
Problem: Vim9: dict does not accept a key in quotes.
Solution: Recognize a key in single or double quotes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Dec 2020 19:15:03 +0100 |
parents | 4b398a229b0b |
children | 3907cf9be745 |
comparison
equal
deleted
inserted
replaced
23087:ca8a14cbafb6 | 23088:285cde4b8d0e |
---|---|
32 varnumber_T dict_get_number_def(dict_T *d, char_u *key, int def); | 32 varnumber_T dict_get_number_def(dict_T *d, char_u *key, int def); |
33 varnumber_T dict_get_number_check(dict_T *d, char_u *key); | 33 varnumber_T dict_get_number_check(dict_T *d, char_u *key); |
34 varnumber_T dict_get_bool(dict_T *d, char_u *key, int def); | 34 varnumber_T dict_get_bool(dict_T *d, char_u *key, int def); |
35 char_u *dict2string(typval_T *tv, int copyID, int restore_copyID); | 35 char_u *dict2string(typval_T *tv, int copyID, int restore_copyID); |
36 char_u *skip_literal_key(char_u *key); | 36 char_u *skip_literal_key(char_u *key); |
37 char_u *get_literal_key(char_u **arg); | |
37 int eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal); | 38 int eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal); |
38 void dict_extend(dict_T *d1, dict_T *d2, char_u *action); | 39 void dict_extend(dict_T *d1, dict_T *d2, char_u *action); |
39 dictitem_T *dict_lookup(hashitem_T *hi); | 40 dictitem_T *dict_lookup(hashitem_T *hi); |
40 int dict_equal(dict_T *d1, dict_T *d2, int ic, int recursive); | 41 int dict_equal(dict_T *d1, dict_T *d2, int ic, int recursive); |
41 void f_items(typval_T *argvars, typval_T *rettv); | 42 void f_items(typval_T *argvars, typval_T *rettv); |