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

Single-line comments (//) in interpolation blocks do not comment the entire line #1720

Closed
andrew-skybound opened this issue Nov 11, 2015 · 2 comments

Comments

@andrew-skybound
Copy link

Ruby SASS treats single-line comments that appear within an interpolation block as extending to the end of the line. From what I can tell, Libsass treats them as extending to the end of the interpolation block.

SCSS Input:

.test {
    a: a#{b//}c;
}

Libsass (3.2.5):

.test {
    a: abc;
}

Ruby SASS (3.4.19):

Error: Invalid CSS after "}": expected ";", was ""

This is confirmed by changing the input to:

.test {
    a: a#{b//}c;
    }c;
}

Libsass:

Error: invalid top-level expression

Ruby SASS:

.test {
  a: abc;
}
saper added a commit to saper/sass-spec that referenced this issue Nov 13, 2015
@saper
Copy link
Member

saper commented Nov 13, 2015

This issue seems to be fixed with 3.3.2, only error message is slightly different.

@saper
Copy link
Member

saper commented Nov 13, 2015

Filed #1730 for the error message.

@saper saper closed this as completed Nov 13, 2015
@saper saper added this to the 3.3.2 milestone Nov 13, 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

2 participants