Patch from Lambros implementing error highlighting in Loopy. [originally from svn r8190]