variable selectors must be paranthesized

This commit is contained in:
Alexis Sellier
2012-03-10 20:25:10 +01:00
parent 98d513a969
commit 67ed7dfcb3

View File

@@ -945,7 +945,9 @@ less.Parser = function Parser(env) {
selector: function () {
var sel, e, elements = [], c, match;
if (sel = $(this.entities.quoted)) {
if ($('(')) {
sel = $(this.entity);
expect(')');
return new(tree.Selector)([new(tree.Element)('', sel, i)]);
}