Currently when I type into a Spoofax editor, the new characters always start out black, even inside comments and strings. After a short time the colorer catches up and applies the correct color. I think it looks “low quality”.

I imagine this is probably quite tricky to fix “properly” since the highlighting depends on the results of the parse, and the parser isn’t fast enough we’d want to wait for it before displaying typed characters.

Mainly I run into this when I am editing comments - the text is black and then turns green. I would be nice if it recognized that I was still inside the comment and applied the same green color to the newly typed characters.

This happens both in my own generated editor and when working on sdf files.

Submitted by Dobes Vandermeer on 15 October 2012 at 19:46

On 15 October 2012 at 19:51 Lennart Kats commented:

Spoofax/94 discusses a possible solution for this.


On 8 January 2013 at 14:03 Eelco Visser tagged editor

On 8 January 2013 at 14:03 Eelco Visser tagged coloring

On 8 January 2013 at 14:04 Eelco Visser tagged minor

Log in to post comments