gruntjs / grunt-contrib-compass

Compile Compass to CSS.
http://gruntjs.com/
MIT License
625 stars 128 forks source link

@each with multiple assignment #188

Closed guilhermemarconi closed 10 years ago

guilhermemarconi commented 10 years ago

The bash throw me an error when I try to do something like this:

@each $animal, $color, $cursor in (puma, black, default),
                                  (sea-slug, blue, pointer),
                                  (egret, white, move) {
  .#{$animal}-icon {
    background-image: url('/images/#{$animal}.png');
    border: 2px solid $color;
    cursor: $cursor;
  }
}

I already updated my Sass and Compass gems (that feature was released in version 3.3.0 of Sass on 7 march 2014) and I updated the grunt-contrib-compass too, but I'm still having this error, that expects a "in" after the first variable rather then ", $color, $cursor in (...)".

Am I doing something wrong or maybe the Sass/Compass of this plugin needs update too?

sindresorhus commented 10 years ago

This plugin just triggers your Compass binary. Any issues with the output is with your code or Compass.