mark occurences: inconsistent behaviour
Given the code :
when cursor is on the definition of fff(), the other two occurences are marked. But when cursor is on any of the other two, the markings arent' correct.
-module(mod).
-define(mmm, mod).
fff() ->
?mmm:fff(),
?MODULE:fff().
when cursor is on the definition of fff(), the other two occurences are marked. But when cursor is on any of the other two, the markings arent' correct.
Leave a comment
on 2010-06-23 03:51 *
By Vlad Dumitrescu
The point was that it should either work for every occurence, or for none of them.
Hmm... this was actually harder than I thougt. The problem is that the mark occurences uses the references from the noparse (that erlang search uses), and they're ignorant of ?Macro:fun(...)-constructs, since they can't access the model to resolve macros.
I'll do a partial remedy for now. (Macros are evil kludges, by the way, and erlang would be a much, much, much better language without them.)
I'll do a partial remedy for now. (Macros are evil kludges, by the way, and erlang would be a much, much, much better language without them.)