[erlang-questions] erl_scan: CR after comment
Wed Apr 8 11:36:22 CEST 2015
I was about to create a PR for this, but maybe I should ask what people
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions