find colors in comments/strings regardless of overlays
This commit is contained in:
parent
87d28d3fc7
commit
b8506e1e45
|
@ -575,7 +575,7 @@
|
||||||
|
|
||||||
function getColor(token) {
|
function getColor(token) {
|
||||||
const {style} = getStyleAtPos({styles, pos: start + 1}) || {};
|
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 (!allowed) return;
|
||||||
|
|
||||||
if (text[start + token.length] === '(') {
|
if (text[start + token.length] === '(') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user