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 causes parsing error when anchored to selector. #327

Closed
nathanjosiah opened this issue Aug 20, 2015 · 3 comments
Closed

Interpolation causes parsing error when anchored to selector. #327

nathanjosiah opened this issue Aug 20, 2015 · 3 comments
Labels

Comments

@nathanjosiah
Copy link

I want to set a color on a class and a different color if it's applied to an a.
Consider the following scss:

.item {
    color: red;

    a#{&} {
        color: blue;
    }
}

This renders Parsing error: Please check validity of the block starting from line #4

Obviously this example is very simple but let's assume my selector is more complex so please don't just say to just use two separate selectors because more complex situations makes this very difficult to maintain. Also, it looks like this is expected behavior based on SASS documentation as well as certain issues on sass/sass.

@Snugug Snugug added the libsass label Aug 20, 2015
@Snugug
Copy link
Collaborator

Snugug commented Aug 20, 2015

Gulp Sass is a thin wrapper around Node Sass, which in turn is a wrapper around Libsass. If you have output/parsing errors, please report them to Libsass

@Snugug Snugug closed this as completed Aug 20, 2015
@nathanjosiah
Copy link
Author

Thank you. For reference, libsass has a bigger bug that includes this one.

@Snugug
Copy link
Collaborator

Snugug commented Aug 20, 2015

Welcome! When that's released, Gulp Sass will support it

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

2 participants