Fixed a case where the lexer could cause the IDE to lockup when trying to lex an unterminated character.