indentation not completely ok
This is in 0.4.2.1.
I believe it should be
scan_atom(Cs, Name, Toks, Pos, State, Errors) ->
case catch list_to_atom(Name) of
Atom when atom(Atom) ->
Val = case reserved_word(Atom) of
true ->
{Atom, {Pos, length(Name)}};
false ->
{atom, {Pos, length(Name)}, Atom}
end,
scan(Cs, [], [Val|Toks], inc(Pos, length(Name)), State, Errors);
_ ->
scan(Cs, [], Toks, Pos, State, [{{illegal,atom},Pos}|Errors])
end.
I believe it should be
scan_atom(Cs, Name, Toks, Pos, State, Errors) ->
case catch list_to_atom(Name) of
Atom when atom(Atom) ->
Val = case reserved_word(Atom) of
true ->
{Atom, {Pos, length(Name)}};
false ->
{atom, {Pos, length(Name)}, Atom}
end,
scan(Cs, [], [Val|Toks], inc(Pos, length(Name)), State, Errors);
_ ->
scan(Cs, [], Toks, Pos, State, [{{illegal,atom},Pos}|Errors])
end.
Leave a comment
on 2008-12-03 14:57 *
By Vlad Dumitrescu
(Comment removed)
on 2008-12-03 14:59 *
By Vlad Dumitrescu
Description changed from This is in 0.4.2.1
scan_... to This is in 0.4.2.1.
Description changed from This is in 0.4.2.1
scan_... to This is in 0.4.2.1.
on 2009-02-19 13:05 *
By jakobc
Milestone changed from backlog to 0.5
Priority changed from Normal (3) to High (2)
Status changed from New to Accepted
Milestone changed from backlog to 0.5
Priority changed from Normal (3) to High (2)
Status changed from New to Accepted
still bad indentation of try/catch/end