mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-02 17:49:38 +01:00
Parse namespaced universal selectors.
This commit is contained in:
parent
021299b9f2
commit
7a29fa5c55
@ -365,9 +365,11 @@ class SelectorParser extends Parser {
|
||||
var nameOrNamespace = identifier();
|
||||
if (!scanner.scanChar($pipe)) {
|
||||
return new TypeSelector(new QualifiedName(nameOrNamespace));
|
||||
} else if (scanner.scanChar($asterisk)) {
|
||||
return new UniversalSelector(namespace: nameOrNamespace);
|
||||
} else {
|
||||
return new TypeSelector(
|
||||
new QualifiedName(identifier(), namespace: nameOrNamespace));
|
||||
}
|
||||
|
||||
return new TypeSelector(
|
||||
new QualifiedName(identifier(), namespace: nameOrNamespace));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user