3 tree.Quoted = function (str, content, escaped, i) {
4 this.escaped = escaped;
5 this.value = content || '';
6 this.quote = str.charAt(0);
9 tree.Quoted.prototype = {
14 return this.quote + this.value + this.quote;
17 eval: function (env) {
19 var value = this.value.replace(/`([^`]+)`/g, function (_, exp) {
20 return new(tree.JavaScript)(exp, that.index, true).eval(env).value;
21 }).replace(/@\{([\w-]+)\}/g, function (_, name) {
22 var v = new(tree.Variable)('@' + name, that.index).eval(env);
23 return v.value || v.toCSS();
25 return new(tree.Quoted)(this.quote + value + this.quote, value, this.escaped, this.index);
29 })(require('less/tree'));