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
url(//...)
The following code throws an error with 2.0.0-b1:
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 200; src: local('Source Sans Pro ExtraLight'), local('SourceSansPro-ExtraLight'), url(//themes.googleusercontent.com/static/fonts/sourcesanspro/v5/toadOcfmlt9b38dHJxOBGLhZfOo4eSOlrve6pGrXHAo.woff) format('woff'); } @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 300; src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url(//themes.googleusercontent.com/static/fonts/sourcesanspro/v5/toadOcfmlt9b38dHJxOBGIPZSf8Ud0kNoe3bGnF7K24.woff) format('woff'); }
SyntaxError: expected ')' got ''' in .../test.less on line 9, column 16: 8 @font-face { 9 font-family: 'Source Sans Pro'; 10 font-style: normal;
Works in older Less versions.
The text was updated successfully, but these errors were encountered:
Confirmed, the minimal example is:
x { y: url(//z); }
It seems that now it interpreters // there as a comment. (I guess this is because autoCommentAbsorb no longer has any effect at this point, no idea of how to fix it though).
//
autoCommentAbsorb
Sorry, something went wrong.
we need to set autoAbsorb comment before calling the regex that will absorb url( then undo it if it comes back with no match
url(
I'll have a go at this now if you aren't doing it...
@lukeapage, yes, please :)
ba3d24a
No branches or pull requests
The following code throws an error with 2.0.0-b1:
Works in older Less versions.
The text was updated successfully, but these errors were encountered: