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