Skip to content

Commit

Permalink
variable selectors must be paranthesized
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Mar 10, 2012
1 parent 98d513a commit 67ed7df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/less/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)]);
}

Expand Down

0 comments on commit 67ed7df

Please sign in to comment.