Merge pull request #3054 from kazuho/kazuho/adjust-column-offset-in-peekc_n fix miscalculation of column number in `peekc_n`
Yukihiro "Matz" Matsumoto
8 years ago
1 changed file(s) with
1 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-0
mrbgems/mruby-compiler/core/parse.y
less
more
3472
3472
do {
3473
3473
c0 = nextc(p);
3474
3474
if (c0 == -1) return c0; /* do not skip partial EOF */
3475
if (c0 >= 0) --p->column;
3475
3476
list = push(list, (node*)(intptr_t)c0);
3476
3477
} while(n--);
3477
3478
if (p->pb) {