Move pygments lexer refresh to generic code edit