-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Precompiler Syntactical Error with "=" #9
Comments
There is a section about Sass in the usage documentation:
|
Duplicate: #5 |
@africanmatt you can also take a look at this Sass function and mixin by @rask: https://gist.github.com/rask/434e96f603e8b439dc64 |
Thank you. Appreciate the assist. |
You're welcome. Feel free to open another issue if you have further questions, or ping me on Twitter. |
I must say that this is very impressive and exciting tech. Thank you for open sourcing.
I did run into a small syntax issue. I'm using SASS to precompile my stylesheets and it doesn't like your new syntax. Eg:
:container( margin-top = 8px ){}
gulp sass, which is just a wrapper of node sass, will throw a syntax error. It doesn't like to use the "=" operator.
I escaped it as follows:
&:container( margin-top \= 8px ){
and edited the regex to match ""
var SELECTOR_REGEXP = /\.?:container\(\s*"?\s*[a-z-]+(?:(?:\s+|\|)[a-z-]+)?\s*(?:[<>!=\\]=?)\s*[^)]+\s*\)/gi;
However this still does not match the actual element or apply any of the required styles.
What are your thoughts?
The text was updated successfully, but these errors were encountered: