fix: comments parse error because of column number

This commit is contained in:
ErosZy 2022-11-12 23:25:18 +08:00
parent 00ed5215e2
commit c5b00eea28

View File

@ -20877,7 +20877,6 @@ static __exception int next_token(JSParseState *s)
s->got_lf = TRUE; /* considered as LF for ASI */
s->column_ptr = ++p;
s->column_num_count = 0;
p++;
} else if (*p == '\r') {
s->got_lf = TRUE; /* considered as LF for ASI */
p++;
@ -21438,7 +21437,6 @@ static __exception int json_next_token(JSParseState *s)
s->line_num++;
s->column_ptr = ++p;
s->column_num_count = 0;
p++;
} else if (*p == '\r') {
p++;
} else if (*p >= 0x80) {