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:
@@ -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
|
||||
|
Reference in New Issue
Block a user