<div dir="ltr">If we can have colouring based on parsing information,<div>I'd love to have exported functions names highlighted in a different way than non-exported ones!</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div><br></div><div>Cheers,</div><div>-- </div><div>Pierre Fenoll</div></div><div><br></div></div></div></div>
<br><div class="gmail_quote">On 5 April 2015 at 09:32, Luis Gerhorst <span dir="ltr"><<a href="mailto:erlang-bugs-mailing-list@luisgerhorst.de" target="_blank">erlang-bugs-mailing-list@luisgerhorst.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>Is there a way to prevent these keyword from being highlighted as bifs if they refer to a function defined by another module or do I simply have to avoid using such function names?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>~ Luis</div></font></span></div><div><div class="h5"><br><div><blockquote type="cite"><div>On 15-W13-7, at 21:06, Steve Vinoski <<a href="mailto:vinoski@ieee.org" target="_blank">vinoski@ieee.org</a>> wrote:</div><br><div><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 29, 2015 at 2:02 PM, Jesper Louis Andersen <span dir="ltr"><<a href="mailto:jesper.louis.andersen@gmail.com" target="_blank">jesper.louis.andersen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span><br><div class="gmail_quote">On Sun, Mar 29, 2015 at 5:47 PM, Luis Gerhorst <span dir="ltr"><<a href="mailto:erlang-bugs-mailing-list@luisgerhorst.de" target="_blank">erlang-bugs-mailing-list@luisgerhorst.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I'm using solarized-theme (<a href="http://github.com/bbatsov/solarized-emacs" target="_blank">https://github.com/bbatsov/solarized-emacs</a>) and as you can see in the screenshot the local function "get" is highlighted the same way built in functions from the "erlang" module are highlighted.</div><div></div></blockquote></div><br></span>I have a guess as to why this happens. The get/1 function is defined in erlang:get/1. It is used to look up values in the process dictionary. The syntax highlighter doesn't understand that get/2 is defined locally in the current module, so it thinks your call to get is to the underlying 'erlang:get/1', not to ?MODULE:get/2. And all problems stems from there.</div></div></blockquote><div><br></div><div>Correct -- see lib/tools/emacs/erlang.el on the maint branch, line 759 (I would link to github but it's being ddos'ed right now so I can't get to it), where "get" is specified as part of an elisp variable holding erlang bif names. Erlang-mode highlights those names as symbols.</div><div><br></div><div>--steve</div></div></div></div>
</div></blockquote></div><br></div></div></div><br>_______________________________________________<br>
erlang-bugs mailing list<br>
<a href="mailto:erlang-bugs@erlang.org">erlang-bugs@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-bugs" target="_blank">http://erlang.org/mailman/listinfo/erlang-bugs</a><br>
<br></blockquote></div><br></div>