Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
support strings as selectors
example:

  @n: 1;
  ~".span@{n}" { ... }
  • Loading branch information
cloudhead committed Mar 4, 2012
1 parent 3e5a336 commit 93b23d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/less/parser.js
Expand Up @@ -945,6 +945,10 @@ less.Parser = function Parser(env) {
selector: function () {
var sel, e, elements = [], c, match;

if (sel = $(this.entities.quoted)) {
return new(tree.Selector)([new(tree.Element)('', sel, i)]);
}

while (e = $(this.element)) {
c = input.charAt(i);
elements.push(e)
Expand Down

0 comments on commit 93b23d2

Please sign in to comment.