Handle CR LF newline natively in lexer

parent 49301ed7
......@@ -3984,6 +3984,13 @@ nextc(parser_state *p)
if (c >= 0) {
p->column++;
}
if (c == '\r') {
const int lf = nextc(p);
if (lf == '\n') {
return '\n';
}
pushback(p, lf);
}
return c;
eof:
......
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