diff options
| author | ZyX <kp-pav@yandex.ru> | 2016-02-13 21:39:28 +0300 |
|---|---|---|
| committer | ZyX <kp-pav@yandex.ru> | 2016-04-18 02:48:20 +0300 |
| commit | 2f67786796d5fb4237f4b0258ec3db0982cc7f53 (patch) | |
| tree | dc8a7d2f10ce72316a8e1162ab160de7dc3aa1fb /runtime/doc/vim_diff.txt | |
| parent | f1ced96c28b7db7b3dad9b0ca2f71f8d046ef732 (diff) | |
| download | rneovim-2f67786796d5fb4237f4b0258ec3db0982cc7f53.tar.gz rneovim-2f67786796d5fb4237f4b0258ec3db0982cc7f53.tar.bz2 rneovim-2f67786796d5fb4237f4b0258ec3db0982cc7f53.zip | |
eval: Rename json* functions to json_*
Diffstat (limited to 'runtime/doc/vim_diff.txt')
| -rw-r--r-- | runtime/doc/vim_diff.txt | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index b42b91140c..508712ca75 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -102,15 +102,19 @@ are always available and may be used simultaneously in separate plugins. The 5. (internal) Trying to print or stringify VAR_UNKNOWN in Vim results in nothing, |E908|, in Neovim it is internal error. -|jsondecode()| behaviour changed: +|json_decode()| behaviour changed: 1. It may output |msgpack-special-dict|. -2. It accepts only valid JSON. |v:none| is never emitted. -|jsonencode()| behaviour slightly changed: now |msgpack-special-dict| values -are accepted. +2. |msgpack-special-dict| is emitted also in case of duplicate keys, while in + Vim it errors out. +3. It accepts only valid JSON. Trailing commas are not accepted. -*v:none* variable is absent. In Vim it represents “no value” in non-JSON -strings like "{"a": }" parsed as "{'a': v:none}". See |jsondecode()| and -|jsonencode()| incompatibilities above. +|json_encode()| behaviour slightly changed: now |msgpack-special-dict| values +are accepted, but |v:none| is not. + +*v:none* variable is absent. In Vim it represents “no value” in “js” strings +like "[,]" parsed as "[v:none]" by |js_decode()|. + +*js_encode()* and *js_decode()* functions are also absent. Viminfo text files were replaced with binary (messagepack) ShaDa files. Additional differences: |