Permalink
Browse files

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

  • Loading branch information...
kazuho committed Dec 21, 2015
1 parent 2ca825a commit adadbf579278108180c299df54793dc364e5b850
Showing with 1 addition and 0 deletions.
  1. +1 −0 mrbgems/mruby-compiler/core/parse.y
@@ -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) {

0 comments on commit adadbf5

Please sign in to comment.