mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-04 02:27:47 +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();
|
var nameOrNamespace = identifier();
|
||||||
if (!scanner.scanChar($pipe)) {
|
if (!scanner.scanChar($pipe)) {
|
||||||
return new TypeSelector(new QualifiedName(nameOrNamespace));
|
return new TypeSelector(new QualifiedName(nameOrNamespace));
|
||||||
}
|
} else if (scanner.scanChar($asterisk)) {
|
||||||
|
return new UniversalSelector(namespace: nameOrNamespace);
|
||||||
|
} else {
|
||||||
return new TypeSelector(
|
return new TypeSelector(
|
||||||
new QualifiedName(identifier(), namespace: nameOrNamespace));
|
new QualifiedName(identifier(), namespace: nameOrNamespace));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user