mirror of
https://github.com/less/less.js.git
synced 2026-02-05 20:44:58 -05:00
support strings as selectors
example:
@n: 1;
~".span@{n}" { ... }
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user