Fixed lexer bug and removed warning signal, replacing it with a call to qWarning().