Permalink
Browse files

support strings as selectors

example:

  @n: 1;
  ~".span@{n}" { ... }
  • Loading branch information...
1 parent 3e5a336 commit 93b23d2c24936d5bd829ba1f725ef442e9475747 @cloudhead cloudhead committed Mar 4, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/less/parser.js
View
@@ -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)

0 comments on commit 93b23d2

Please sign in to comment.