add underlining for invalid expressions