-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Double dash in CSS class name can lead to "Named colours are forbidden" false positives #1257
Labels
Comments
gsherwood
added a commit
that referenced
this issue
Jan 3, 2017
…lours are forbidden" false positives
Thanks for the bug report. I've fixed this now. I had to change the way the file was tokenized to ensure all sniffs would work. Previously, the file was tokenized like this:
Now it is tokenized like this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We got some "Named colours are forbidden" (Squiz.CSS.NamedColours.Forbidden) errors from using named colours such as "white" in CSS class names. Turn out this is due to double dashes, which are recognized as T_DEC. Hence the "previous token was hash or string concat" check fails.
Should be easy to fix. :-)
Example:
The text was updated successfully, but these errors were encountered: