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

Interpolation inside an interpolation isn't handled correctly #615

Closed
xzyfer opened this Issue Nov 3, 2014 · 4 comments

Comments

Projects
None yet
3 participants
@xzyfer
Contributor

xzyfer commented Nov 3, 2014

The following results in an invalid property name error.

$foo: "bar";
%#{"foo--#{$foo}"} {
    foo: bar;
}

a { 
  @extend %foo--bar; 
}

I suspect this is partly responsible for #439 as well.

Specs added sass/sass-spec#123.

@lunelson

This comment has been minimized.

lunelson commented Nov 5, 2014

Isn't this an interpolation inside an interpolation? The following works as far as I can tell

$foo: "bar";
%foo--#{$foo} {
    foo: bar;
}

a { 
  @extend %foo--bar; 
}
@xzyfer

This comment has been minimized.

Contributor

xzyfer commented Nov 5, 2014

Yeah it essentially boils down to interpolation inside an interpolation. Updated the issue title accordingly. FTR this also works

$foo: "bar";
%#{"foo--" + $foo} {
    foo: bar;
}

a { 
  @extend %foo--bar; 
}

@xzyfer xzyfer changed the title from Interpolation in placeholder causes error to Interpolation inside an interpolation isn't handled correctly Nov 5, 2014

@mgreter mgreter self-assigned this Jan 19, 2015

@ghost

This comment has been minimized.

ghost commented Jan 22, 2015

Created a pull request for this:

#854

@mgreter

This comment has been minimized.

Contributor

mgreter commented Mar 2, 2015

This should be solved by #910!

@mgreter mgreter closed this Mar 2, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment