mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-12 17:17:27 +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();
|
var midBuffer = new StringBuffer();
|
||||||
midBuffer.write(rawText(whitespace));
|
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);
|
midBuffer.writeCharCode($colon);
|
||||||
|
|
||||||
// Parse custom properties as declarations no matter what.
|
// Parse custom properties as declarations no matter what.
|
||||||
|
Loading…
Reference in New Issue
Block a user