[erlang-questions] erl_scan: CR after comment

Vlad Dumitrescu vladdu55@REDACTED
Wed Apr 8 11:36:22 CEST 2015


Hi!

I was about to create a PR for this, but maybe I should ask what people
think.

erl_scan creates comment tokens up to a LF character. On Windows, this
means that the comment includes a CR character at the end. This requires
special handling when the tokens are manipulated outside erlang (by an
editor, for example) because Erlang and the editor consider the end of the
token to lie on different lines.

Is it meaningful to let erl_scan end comments before both CR and LF? The
downside is that there will be an extra whitespace token for the CR between
consecutive comments.

best regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150408/faf27969/attachment.htm>


More information about the erlang-questions mailing list