-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fails to parse selector with variable without leading space #146
Comments
Thanks for the issue. Pull Requests are welcomed! |
I just got the same bug. My description was here postcss/postcss#1530 . I thought it was because of multiple @{substitutions}, but now tried to insert space between selector and «{», and it worked. So, thank you for workaround, but it would be nice to fix it, so than lessc and postcss work the same. |
me too my @import '~antd/es/style/themes/default.less';
.headerWrapper {
margin: 0;
:global {
.@{ant-prefix}-tabs-nav {
margin: 0;
}
.@{ant-prefix}-tabs-tab {
height: 48px;
}
}
}
Error message
|
@beiifeng please don't post "me too" replies on issues. No one likes those. Use the reaction buttons instead. |
ok. |
LESS
JavaScript
Errors
Expected Behavior
When space is added after
.height-@{num}
less code is parsed normally, still it is valid even without that space and should be parsed.Actual Behavior
Parsing error is emitted.
How can we reproduce the behavior?
Execute the js script I've provided.
I checked your sources quickly, may be problem is in https://github.com/shellscape/postcss-less/blob/master/lib/nodes/interpolation.js#L7, it consumes second
{
as there is no space to stop consumption.The text was updated successfully, but these errors were encountered: