Edoc crash when using macro with function
Adam Lindberg
adam@REDACTED
Wed Oct 14 10:57:10 CEST 2009
Hi!
Running edoc:file/1 on test.erl with this content will result in a crash in edoc:
-module(test).
-export([f/0]).
-define(FUNC, f() -> ok).
?FUNC.
Seems edoc in R13B02 can't handle the macro on line 7.
1> edoc:file("test.erl"). test.erl: at line 7: syntax error before: '.'
** exception exit: error
in function edoc:'-check_forms/2-fun-0-'/2
in call from lists:foreach/2
in call from edoc:read_source/2
in call from edoc_extract:source/3
in call from edoc:read/2
in call from edoc:file/2
Cheers,
Adam
More information about the erlang-bugs
mailing list