Stop special treating of \r in the lexer; fix #4132

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-11-20 09:35:38 +09:00
parent 86d102350b
commit f1eeaad84a
-8
View File
@@ -3710,14 +3710,6 @@ nextc(parser_state *p)
if (c >= 0) {
p->column++;
}
if (c == '\r') {
c = nextc(p);
if (c != '\n') {
pushback(p, c);
return '\r';
}
return c;
}
return c;
eof: