mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 12:44:42 +01:00
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:
parent
a9de0f7351
commit
9ce2d30e2a
@ -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.
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user