in peekc_n, adjust column number after calling nextc

This commit is contained in:
Kazuho Oku
2015-12-21 14:58:43 +09:00
parent 2ca825a212
commit adadbf5792
+1
View File
@@ -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) {