quote 'import' so it doesn't freak out

This commit is contained in:
cloudhead
2010-03-29 22:24:33 -04:00
parent 11f71f32e7
commit e3df96762e

View File

@@ -727,7 +727,7 @@ less.Parser = function Parser(env) {
// file-system operation. The function used for importing is
// stored in `import`, which we pass to the Import constructor.
//
import: function () {
"import": function () {
var path;
if ($(/@import\s+/g) &&
(path = $(this.entities.quoted) || $(this.entities.url)) &&
@@ -746,7 +746,7 @@ less.Parser = function Parser(env) {
if (input[i] !== '@') return;
if (value = $(this.import)) {
if (value = $(this['import'])) {
return value;
} else if (name = $(/@media|@page/g)) {
types = $(/[a-z:, ]+/g).trim();