Revert commit mistake

This commit is contained in:
Luke Page
2012-08-24 06:45:28 +01:00
parent bd8679b4c6
commit 96ef26a9ff
3 changed files with 2 additions and 43 deletions

View File

@@ -1001,29 +1001,10 @@ less.Parser = function Parser(env) {
selector: function () {
var sel, e, elements = [], c, match;
if (peek(/^&?\(/)) {
// variable selectors:
// allow & before a selector to allow variable selectors
// to be at the same level, e.g.
// .a {
// &(~".b") {
//
// Ideally this would be part of the element function.. this would allow
// (@a).b(@c)
// however this syntax conflicts with the supported syntax
// :nth-child(@a)
// vs
// .a:hover(@a)
e = $('&');
$('(');
if (e) {
elements.push(new(tree.Element)('', e, i));
}
if ($('(')) {
sel = $(this.entity);
expect(')');
elements.push(new(tree.Element)('', sel, i));
return new(tree.Selector)(elements);
return new(tree.Selector)([new(tree.Element)('', sel, i)]);
}
while (e = $(this.element)) {