From 93b23d2c24936d5bd829ba1f725ef442e9475747 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Sun, 4 Mar 2012 22:13:04 +0100 Subject: [PATCH] support strings as selectors example: @n: 1; ~".span@{n}" { ... } --- lib/less/parser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/less/parser.js b/lib/less/parser.js index 5a9f1e30..c72fc64b 100644 --- a/lib/less/parser.js +++ b/lib/less/parser.js @@ -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)