dlang-community / libddoc

D implementation of the DDoc macro system
Boost Software License 1.0
7 stars 9 forks source link

RangeError with Mac line endings #5

Open kiith-sa opened 9 years ago

kiith-sa commented 9 years ago

Files with old Mac line endings crash libddoc (yes, this is pretty obscure, pretty much noticed this by accident).

Example file

(that's an old version of installation.d from dub)

Error generated: core.exception.RangeError@libddoc/src/ddoc/lexer.d(91): Range violation

Hackerpilot commented 9 years ago

"I shouldn't worry. Nobody uses old Mac line endings..." -Me, several months ago.