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

Interpolation inside an interpolation isn't handled correctly #615

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

Interpolation inside an interpolation isn't handled correctly #615

xzyfer opened this issue Nov 3, 2014 · 4 comments

Comments

@xzyfer
Copy link
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
Copy link

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
Copy link
Contributor Author

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 Interpolation in placeholder causes error Interpolation inside an interpolation isn't handled correctly Nov 5, 2014
@mgreter mgreter self-assigned this Jan 19, 2015
@ghost
Copy link

ghost commented Jan 22, 2015

Created a pull request for this:

#854

@mgreter
Copy link
Contributor

mgreter commented Mar 2, 2015

This should be solved by #910!

@mgreter mgreter closed this as completed Mar 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants