Commit adadbf57 authored by Kazuho Oku's avatar Kazuho Oku

in `peekc_n`, adjust column number after calling `nextc`

parent 2ca825a2
......@@ -3473,6 +3473,7 @@ peekc_n(parser_state *p, int n)
do {
c0 = nextc(p);
if (c0 == -1) return c0; /* do not skip partial EOF */
if (c0 >= 0) --p->column;
list = push(list, (node*)(intptr_t)c0);
} while(n--);
if (p->pb) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment