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

Dash symbol at the end of class name causes error #922

Closed
t1m0n opened this issue Mar 6, 2015 · 0 comments · Fixed by #924
Closed

Dash symbol at the end of class name causes error #922

t1m0n opened this issue Mar 6, 2015 · 0 comments · Fixed by #924

Comments

@t1m0n
Copy link

t1m0n commented Mar 6, 2015

Hello, I'm using node-sass and getting this error.

$color: 'red';

.-text-#{$color}- {
  color: $color;
}

Will cause to "invalid top-level expression".

If remove dash from the end of the class name, or surround it with (#{'-'}), everything works fine.

@mgreter mgreter self-assigned this Mar 6, 2015
mgreter added a commit to mgreter/sass-spec that referenced this issue Mar 6, 2015
mgreter added a commit to mgreter/libsass that referenced this issue Mar 6, 2015
mgreter added a commit to mgreter/libsass that referenced this issue Mar 6, 2015
@xzyfer xzyfer added this to the 3.2 milestone Mar 7, 2015
mgreter added a commit to mgreter/sass-spec that referenced this issue Mar 12, 2015
mgreter added a commit to mgreter/sass-spec that referenced this issue Mar 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants