comparison src/json.c @ 25557:763ea8f075db v8.2.3315

patch 8.2.3315: cannot use single quote in a float number for readability Commit: https://github.com/vim/vim/commit/2950065e18649d234b16e60dd0e3d75adeca4513 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 8 15:43:34 2021 +0200 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 https://github.com/vim/vim/issues/8713)
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 Aug 2021 15:45:03 +0200
parents e8e2c4d33b9b
children bce848ec8b1b
comparison
equal deleted inserted replaced
25556:5b91b4fa6cc7 25557:763ea8f075db
789 { 789 {
790 if (cur_item == NULL) 790 if (cur_item == NULL)
791 { 791 {
792 float_T f; 792 float_T f;
793 793
794 len = string2float(p, &f); 794 len = string2float(p, &f, FALSE);
795 } 795 }
796 else 796 else
797 { 797 {
798 cur_item->v_type = VAR_FLOAT; 798 cur_item->v_type = VAR_FLOAT;
799 len = string2float(p, &cur_item->vval.v_float); 799 len = string2float(p, &cur_item->vval.v_float,
800 FALSE);
800 } 801 }
801 } 802 }
802 else 803 else
803 #endif 804 #endif
804 { 805 {