Skip to content
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

Broken in lessc 3.7 #11

Open
CliffS opened this issue Aug 9, 2018 · 1 comment
Open

Broken in lessc 3.7 #11

CliffS opened this issue Aug 9, 2018 · 1 comment
Labels

Comments

@CliffS
Copy link

CliffS commented Aug 9, 2018

The .for-each command works up to and including lessc version 3.6.0.

In 3.7.0 and current it gives:

ParseError: Unrecognised input in for-each.less on line 6, column 33:
5 #for-each-fruit {
6     .for-each(@value in @fruit) {
7         value: @value;

where the open brace on line 6 is in red.

@seven-phases-max
Copy link
Owner

seven-phases-max commented Oct 9, 2018

Yes, this is something changed in Less parser in recent versions (I guess it was a fix for less/less.js#2824). Unfortunately, I'm afraid I won't be able to fix this myself any time soon - so any PRs (or just ideas) are welcome. Related info of interest.

Also note that the breaking version of Less already has its own each function so you can use it as a replacement (though if I'm not mistaken they are not 100% interchangable and there're non overlapping limitations/pros/cons in either of these facilities).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant