0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3315: cannot use single quote in a float number for readability

Problem:    Cannot use single quote in a float number for readability.
Solution:   Support single quotes like in numbers. (closes #8713)
This commit is contained in:
Bram Moolenaar
2021-08-08 15:43:34 +02:00
parent 267359902c
commit 2950065e18
7 changed files with 72 additions and 10 deletions

View File

@@ -791,12 +791,13 @@ json_decode_item(js_read_T *reader, typval_T *res, int options)
{
float_T f;
len = string2float(p, &f);
len = string2float(p, &f, FALSE);
}
else
{
cur_item->v_type = VAR_FLOAT;
len = string2float(p, &cur_item->vval.v_float);
len = string2float(p, &cur_item->vval.v_float,
FALSE);
}
}
else