tc39 / ecmarkdown

A shorthand language for writing ECMAScript-style algorithms, inspired by Markdown
Other
80 stars 14 forks source link

Handle CRLF #67

Open bakkot opened 4 years ago

bakkot commented 4 years ago

We should handle Windows line endings somehow, either by explicitly supporting them in input (though presumably outputting them as just '\n') or (my preference) explicitly disallowing them, with a useful error message.

michaelficarra commented 4 years ago

What's the error message currently? Something like "Unexpected \r"?

bakkot commented 4 years ago

No, it's parsed as text.

michaelficarra commented 4 years ago

Oh god, yeah rejecting it with a nice error sounds good.