[erlang-questions] erl_scan issues

Vlad Dumitrescu vladdu55@REDACTED
Tue Apr 21 13:53:49 CEST 2015


I found some unexpected behaviour for erl_scan and I hope someone can shed
a light as to if it's supposed to be like that or it's a bug. IMHO the
latter applies.

> erl_scan:string("a. b",{1,1},[return,text]).
     {dot,[{line,1},{column,2},{text,". "}]},

In short, the first newline or whitespace after a dot is included in the
textual representation of the token. Why would anyone have that?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150421/bc5eab5f/attachment.htm>

More information about the erlang-questions mailing list