Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed scss variable coloring issue #206

Closed
wants to merge 1 commit into from

Conversation

xiaoxustudio
Copy link

Fixed scss variable coloring issue
Fixed issue : #203

@@ -54,7 +54,7 @@ export async function findScssVars(text, importerOptions) {

varNames = sortStringsInDescendingOrder(varNames);

const varNamesRegex = new RegExp(`\\$(${varNames.join('|')})(?!-|\\s*:)`, 'g');
const varNamesRegex = new RegExp(`\\$(${varNames.join('|')})(?!-|\\S*:)`, 'g');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly tell me what this change will do?

@@ -72,6 +72,5 @@ export async function findScssVars(text, importerOptions) {
match = varNamesRegex.exec(text);
}


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is avoidable I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants