Add Diagnosis to ScalaLexer.