Don't deadlock on /* comments in the indented syntax

Closes #238
This commit is contained in:
Natalie Weizenbaum 2018-02-23 16:29:23 -08:00
parent 374ba16918
commit bacc380d5b
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 1.0.0-beta.5.3
* Don't deadlock on `/*` comments in the indented syntax.
## 1.0.0-beta.5.2
* Fix a bug where some colors would crash `compressed` mode.

View File

@ -218,13 +218,14 @@ class SassParser extends StylesheetParser {
buffer.writeCharCode($space);
}
loop:
while (!scanner.isDone) {
var next = scanner.peekChar();
switch (next) {
case $lf:
case $cr:
case $ff:
break;
break loop;
case $hash:
if (scanner.peekChar(1) == $lbrace) {

View File

@ -1,5 +1,5 @@
name: sass
version: 1.0.0-beta.5.2
version: 1.0.0-dev
description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass