Fix docblock parsing to handle \r\n

This is needed to parse the docblock in files with Windows line endings.

Originally done as https://github.com/facebook/react/pull/230

Should fix https://github.com/facebook/react/issues/366