mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Stop special treating of \r in the lexer; fix #4132
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user