line and char index added to diagnostics.