You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.
I've been using the excellent Base16 Twilight Dark color scheme, and have found that while periods in class selectors are supported in CSS files, they aren't supported in Sass files.
I believe this is supported in CSS by the Attribute ID (either entity.other.attribute-name.id or punctuation.definition.entity—my guess is the latter).
CSS (notice the blue period between the "a" and the "cta-button" class):
Sass (period between "a" and the "custom" class is the same color as the class):
The text was updated successfully, but these errors were encountered:
This package considers the . is part of the class selector as the # is part of the id selector and the :: is part of the pseudo-element selector. So they shouldn't be highlighted in a different colour.
Highlighting Sass selectors also need to consider interpolations, e.g. .class-#{$variable}, and highlight the punctuations and selector name in the same colour can make things easier :D
I've been using the excellent Base16 Twilight Dark color scheme, and have found that while periods in class selectors are supported in CSS files, they aren't supported in Sass files.
I believe this is supported in CSS by the Attribute ID (either entity.other.attribute-name.id or punctuation.definition.entity—my guess is the latter).
CSS (notice the blue period between the "a" and the "cta-button" class):
Sass (period between "a" and the "custom" class is the same color as the class):
The text was updated successfully, but these errors were encountered: