Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
colorizeCode(code) {
if (!code) return '';
let result = '';
let match = tokens.default.exec(code);
while (match) {
let token = tokens.matchToToken(match);
result += config.colorizeToken(token);
match = tokens.default.exec(code);
}
return result;
},
colorizeCommand(command, error, ended = true) {