Mercurial > vim
diff src/dict.c @ 19181:94eda51ba9ba v8.2.0149
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Commit: https://github.com/vim/vim/commit/8a7d6542b33e5d2b352262305c3bfdb2d14e1cf8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 26 15:56:19 2020 +0100
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Problem: Maintaining a Vim9 branch separately is more work.
Solution: Merge the Vim9 script changes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 26 Jan 2020 16:00:05 +0100 |
parents | ba9f50bfda83 |
children | fc3cdc819d80 |
line wrap: on
line diff
--- a/src/dict.c +++ b/src/dict.c @@ -826,7 +826,7 @@ eval_dict(char_u **arg, typval_T *rettv, if (**arg != ':') { - semsg(_("E720: Missing colon in Dictionary: %s"), *arg); + semsg(_(e_missing_dict_colon), *arg); clear_tv(&tvkey); goto failret; } @@ -853,7 +853,7 @@ eval_dict(char_u **arg, typval_T *rettv, item = dict_find(d, key, -1); if (item != NULL) { - semsg(_("E721: Duplicate key in Dictionary: \"%s\""), key); + semsg(_(e_duplicate_key), key); clear_tv(&tvkey); clear_tv(&tv); goto failret; @@ -873,7 +873,7 @@ eval_dict(char_u **arg, typval_T *rettv, break; if (**arg != ',') { - semsg(_("E722: Missing comma in Dictionary: %s"), *arg); + semsg(_(e_missing_dict_comma), *arg); goto failret; } *arg = skipwhite(*arg + 1); @@ -881,7 +881,7 @@ eval_dict(char_u **arg, typval_T *rettv, if (**arg != '}') { - semsg(_("E723: Missing end of Dictionary '}': %s"), *arg); + semsg(_(e_missing_dict_end), *arg); failret: if (d != NULL) dict_free(d);