erlang / erlide_eclipse

Eclipse IDE for Erlang

Home Page:http://erlide.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better syntax colouring on atoms

martinpritchard opened this issue · comments

It would be nice if syntax colouring for atoms was different, and customisable. At present it is the same as module's colouring. However, intellij offers better syntax highlighting in this respect.

This would be "semantic highlighting" where atoms are coloured according to what they mean. At the moment I don't have a parser that can recognise those details, but it's definitely something I want to have.

What do you mean by "module's colouring"?

Related to #66

IIRC, atom highlighting follows the way that you configure the module highlighting as in module:function() calls. May be wrong here, not near a computer with erlide installed.

This would really help clarity when scanning gen_servers, for example. I tend to use the glance plugin to help, but this only highlights the selected text. Easily seeing atoms would be great.

Do you mean that module and function names (where they can be identified as such) should have different colours than regular atoms? Or just function definitions?

Since you mention gen_servers, is it the atoms used as parameters to handle_call that you want emphasized?

Regular atoms is the main thing I would like, so that in preferences one can chose a preferred colour, that is distinctive for atoms, and not applied to anything else. This would highlight function returns such as {ok, _} and {error, _}, along with gen_server cast/call/info and other pattern matched function overloads.