mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-23 06:08:13 +08:00
fix: comments parse error because of column number
This commit is contained in:
parent
00ed5215e2
commit
c5b00eea28
@ -20877,7 +20877,6 @@ static __exception int next_token(JSParseState *s)
|
|||||||
s->got_lf = TRUE; /* considered as LF for ASI */
|
s->got_lf = TRUE; /* considered as LF for ASI */
|
||||||
s->column_ptr = ++p;
|
s->column_ptr = ++p;
|
||||||
s->column_num_count = 0;
|
s->column_num_count = 0;
|
||||||
p++;
|
|
||||||
} else if (*p == '\r') {
|
} else if (*p == '\r') {
|
||||||
s->got_lf = TRUE; /* considered as LF for ASI */
|
s->got_lf = TRUE; /* considered as LF for ASI */
|
||||||
p++;
|
p++;
|
||||||
@ -21438,7 +21437,6 @@ static __exception int json_next_token(JSParseState *s)
|
|||||||
s->line_num++;
|
s->line_num++;
|
||||||
s->column_ptr = ++p;
|
s->column_ptr = ++p;
|
||||||
s->column_num_count = 0;
|
s->column_num_count = 0;
|
||||||
p++;
|
|
||||||
} else if (*p == '\r') {
|
} else if (*p == '\r') {
|
||||||
p++;
|
p++;
|
||||||
} else if (*p >= 0x80) {
|
} else if (*p >= 0x80) {
|
||||||
|
Loading…
Reference in New Issue
Block a user