Fix handling of **/. (#60)

We had been failing to close comments because we'd consume the second
asterisk and fail to register that it might be the one to end the
comment.

See sass/sass-spec#986
Closes #58
This commit is contained in:
Natalie Weizenbaum 2016-12-09 14:02:26 -08:00 committed by GitHub
parent a9de0f7351
commit 9ce2d30e2a
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@
* Fix a bug with `@extend` superselector calculations.
* Fix a bug where `**/` would fail to close a loud comment.
## 1.0.0-alpha.4
* Add support for bracketed lists.

View File

@ -147,7 +147,7 @@ class ScssParser extends StylesheetParser {
scanner.expect("/*");
do {
while (scanner.readChar() != $asterisk) {}
} while (scanner.readChar() != $slash);
} while (!scanner.scanChar($slash));
return new Comment(
scanner.substring(start.position), scanner.spanFrom(start),