mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 13:51:31 +01:00
Fix "2n of .foo" parsing.
This commit is contained in:
parent
9ec89f6944
commit
6f6eb79dae
@ -284,9 +284,9 @@ class SelectorParser extends Parser {
|
||||
selector = _selectorList();
|
||||
} else if (unvendored == "nth-child" || unvendored == "nth-last-child") {
|
||||
argument = rawText(_aNPlusB);
|
||||
if (scanWhitespace()) {
|
||||
if (isWhitespace(scanner.peekChar(-1))) {
|
||||
expectIdentifier("of", ignoreCase: true);
|
||||
argument += " of";
|
||||
argument += "of";
|
||||
whitespace();
|
||||
|
||||
selector = _selectorList();
|
||||
|
Loading…
x
Reference in New Issue
Block a user