find colors in comments/strings regardless of overlays

This commit is contained in:
tophf 2018-01-07 11:45:35 +03:00
parent 87d28d3fc7
commit b8506e1e45

View File

@ -575,7 +575,7 @@
function getColor(token) {
const {style} = getStyleAtPos({styles, pos: start + 1}) || {};
const allowed = ALLOWED_STYLES.includes(style);
const allowed = !style || ALLOWED_STYLES.includes(style.split(' ', 1)[0]);
if (!allowed) return;
if (text[start + token.length] === '(') {