treat carriage returns as whitespace when parsing types.def

On Windows, some versions of Git automatically translate Unix line
endings to Windows line endings, which can break the build unless we
treat carriage returns as whitespace when parsing.
This commit is contained in:
Joel Dice 2011-08-29 14:31:30 -06:00
parent d09e5ee8eb
commit f0cb26ec51

View File

@ -790,7 +790,7 @@ read(Input* in, Object* eos, int level)
}
} break;
case ' ': case '\t': case '\n': {
case ' ': case '\t': case '\n': case '\r': {
if (s.first) {
return String::make(s.first);
}