Andrew Aponte
Andrew Aponte

Reputation: 570

SASS compass compiler choking on multiple assignment @each loop

The following is an example from the SASS documentation:

@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;
   }
}

For some reason, it throws the following error:

error sass/screen.scss (Line 8: Invalid CSS after " @each $animal": expected "in", was ", $color, $curs...")

I tried uninstalling and reinstalling ruby/sass/compass to no avail. What gives? Here are the versions I have:

Upvotes: 0

Views: 730

Answers (1)

sawa
sawa

Reputation: 168101

It looks like multiple assignment is SASS 3.3 feature. Maybe this will help.

Upvotes: 3

Related Questions