Don't clear styles when setting lexer id unless it has changed