mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-03 10:08:01 +01:00
Fix a selector parsing bug.
This commit is contained in:
parent
aec39904bc
commit
9edb2bb447
@ -209,7 +209,10 @@ abstract class StylesheetParser extends Parser {
|
||||
|
||||
var midBuffer = new StringBuffer();
|
||||
midBuffer.write(rawText(whitespace));
|
||||
if (!scanner.scanChar($colon)) return nameBuffer;
|
||||
if (!scanner.scanChar($colon)) {
|
||||
if (midBuffer.isNotEmpty) nameBuffer.writeCharCode($space);
|
||||
return nameBuffer;
|
||||
}
|
||||
midBuffer.writeCharCode($colon);
|
||||
|
||||
// Parse custom properties as declarations no matter what.
|
||||
|
Loading…
Reference in New Issue
Block a user