SMLFamily / Successor-ML

A version of the 1997 SML definition with corrections and some proposed Successor ML features added.
191 stars 10 forks source link

End of line for line comments #35

Open atsampson opened 7 years ago

atsampson commented 7 years ago

In section 2.3: "A line comment is any character sequence between the comment delimiter (*) and the following end of line."

I think this is the only place where the spec cares about line endings. Is it worth being clearer about exactly what the "following end of line" is, to avoid ambiguity when processing source files with different line ending conventions? Perhaps something like "... and the next carriage return or linefeed character (or the end of the file)."

Hibou57 commented 7 years ago

Unicode has a definition for this: http://www.unicode.org/reports/tr14/#BK