From f0cb26ec51950b85abed282acc89256d79cf8c5b Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 29 Aug 2011 14:31:30 -0600 Subject: [PATCH] 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. --- src/type-generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/type-generator.cpp b/src/type-generator.cpp index 626573af8e..254fd966d8 100644 --- a/src/type-generator.cpp +++ b/src/type-generator.cpp @@ -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); }