support shadow dom selectors. fixes #1801

This commit is contained in:
Luke Page
2014-01-11 17:43:19 +00:00
parent 6dfb00751c
commit 92c3ac2c88
6 changed files with 26 additions and 6 deletions

View File

@@ -1343,9 +1343,13 @@ less.Parser = function Parser(env) {
//
combinator: function () {
var c = input.charAt(i);
if (c === '>' || c === '+' || c === '~' || c === '|') {
if (c === '>' || c === '+' || c === '~' || c === '|' || c === '^') {
i++;
if (input.charAt(i) === '^') {
c = '^^';
i++;
}
while (isWhitespace(input, i)) { i++; }
return new(tree.Combinator)(c);
} else if (isWhitespace(input, i - 1)) {