0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.0171: JS style JSON does not support single quotes

Problem:    JS style JSON does not support single quotes.
Solution:   Allow for single quotes. (Yasuhiro Matsumoto, closes #1371)
This commit is contained in:
Bram Moolenaar
2017-01-11 21:50:08 +01:00
parent e32abbe42c
commit ee142add22
5 changed files with 26 additions and 7 deletions

View File

@@ -181,7 +181,7 @@ test_fill_called_on_string(void)
reader.js_buf = (char_u *)" \"foo";
reader.js_end = reader.js_buf + STRLEN(reader.js_buf);
reader.js_cookie = " \"foobar\" ";
assert(json_decode_string(&reader, NULL) == OK);
assert(json_decode_string(&reader, NULL, '"') == OK);
}
#endif