mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-28 10:13:59 +00:00
JSON parse-error messages alwasys said "column 0"; fixed
This commit is contained in:
parent
acb48e3679
commit
107887aacf
1 changed files with 3 additions and 0 deletions
|
|
@ -459,6 +459,7 @@ json_value_t * json_parse(
|
|||
*ppend_of_item = pb + 1;
|
||||
break;
|
||||
|
||||
state.cur_col++;
|
||||
switch (b) {
|
||||
WHITESPACE:
|
||||
continue;
|
||||
|
|
@ -471,6 +472,7 @@ json_value_t * json_parse(
|
|||
}
|
||||
|
||||
if (flags & FLAG_SEEK_VALUE) {
|
||||
state.cur_col++;
|
||||
switch (b) {
|
||||
WHITESPACE:
|
||||
continue;
|
||||
|
|
@ -653,6 +655,7 @@ json_value_t * json_parse(
|
|||
switch (ptop->type) {
|
||||
case JSON_OBJECT:
|
||||
|
||||
state.cur_col++;
|
||||
switch (b) {
|
||||
WHITESPACE:
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue