On 2013-04-10, at 10:28, Stéphane Ducasse <stephane.duca...@inria.fr> wrote:
> Hi guys > > I think that we should really change the following behavior. > If I have an instance variable abc > > when I type ab is should not be colored in red first then when I type c get > black > > It should tell me that ab is correct and only get red when I type abx > > I got this behavior for the kid book. > > Does anybody have an idea how we can fix that? Well it mostly depends on the parser. But the behavior you describe is pretty common in other languages. To be precise, you actually have invalid code, but you are on the way to make it valid. For me a solution would be a timer/delay when the syntax coloring hits in. So while you are typing it stays black, but after some 200ms pause it will give you feedback (also when you press any of: ' ,;:[]|(){}").