Commit fc125524 authored by Frank Celler's avatar Frank Celler

only increment position, if no error has occured

parent 2b9ed5ac
......@@ -2976,12 +2976,16 @@ nextc(parser_state *p)
c = *p->s++;
}
if (c == '\n') {
p->lineno++;
p->column = 0;
if (p->nerr < 1) {
p->lineno++;
p->column = 0;
}
// must understand heredoc
}
else {
p->column++;
if (p->nerr < 1) {
p->column++;
}
}
return c;
}
......
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