-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
variable values cannot be selectors without escaping #1328
Comments
because it parses it as a css value. we do not parse for css selectors as variable values because we do not know what the variable is to be used as. having said that maybe we should support a |
Thanks for the answer, lukeapage, though I must admit I might not have understood it. Why this one works:
but this one throws an
? Both strings seems almost equal to me, only difference is that little hyphen on the second one, and that's enough to throw the error. |
because of a fluke. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Example code (taken from less2css.org):
The value assigned to variable will also work if written this way (not escaped):
But will fail with a
ParseError: Unrecognised input
if any term has an hyphen (-
) on it, like this:The text was updated successfully, but these errors were encountered: