mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-26 20:24:42 +01:00
Fix selector pseudo parsing.
This commit is contained in:
parent
55e81951b2
commit
02a9780b43
@ -15,11 +15,11 @@ import 'util/character.dart';
|
||||
import 'utils.dart';
|
||||
import 'value.dart';
|
||||
|
||||
final _selectorPseudoClasses =
|
||||
new Set.from(["not" "matches" "current" "any" "has" "host" "host-context"]);
|
||||
final _selectorPseudoClasses = new Set.from(
|
||||
["not", "matches", "current", "any", "has", "host", "host-context"]);
|
||||
|
||||
final _prefixedSelectorPseudoClasses =
|
||||
new Set.from(["nth-child" "nth-last-child"]);
|
||||
new Set.from(["nth-child", "nth-last-child"]);
|
||||
|
||||
class Parser {
|
||||
final SpanScanner _scanner;
|
||||
@ -984,12 +984,19 @@ class Parser {
|
||||
component = Combinator.followingSibling;
|
||||
break;
|
||||
|
||||
case $lbrace:
|
||||
case $comma:
|
||||
break loop;
|
||||
case $lbracket:
|
||||
case $dot:
|
||||
case $hash:
|
||||
case $percent:
|
||||
case $colon:
|
||||
case $ampersand:
|
||||
case $asterisk:
|
||||
case $pipe:
|
||||
component = _compoundSelector();
|
||||
break;
|
||||
|
||||
default:
|
||||
if (next == null) break loop;
|
||||
if (next == null || !_lookingAtInterpolatedIdentifier()) break loop;
|
||||
component = _compoundSelector();
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user