[erlang-questions] erl_scan issues
Vlad Dumitrescu
vladdu55@REDACTED
Tue Apr 21 13:53:49 CEST 2015
Hi!
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]).
{ok,[{atom,[{line,1},{column,1},{text,"a"}],a},
{dot,[{line,1},{column,2},{text,". "}]},
{atom,[{line,1},{column,4},{text,"b"}],b}],
{1,5}}
In short, the first newline or whitespace after a dot is included in the
textual representation of the token. Why would anyone have that?
regards,
Vlad
-------------- 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