erlide_eclipse icon indicating copy to clipboard operation
erlide_eclipse copied to clipboard

Better syntax colouring on atoms

Open martinpritchard opened this issue 9 years ago • 4 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.

martinpritchard avatar Jul 05 '16 21:07 martinpritchard

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

vladdu avatar Jul 05 '16 21:07 vladdu

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.

martinpritchard avatar Jul 05 '16 22:07 martinpritchard

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?

vladdu avatar Jul 06 '16 11:07 vladdu

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.

martinpritchard avatar Jul 06 '16 21:07 martinpritchard