From e3df96762ea7bda1862944cf14af04c8a43b5656 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 29 Mar 2010 22:24:33 -0400 Subject: [PATCH] quote 'import' so it doesn't freak out --- lib/less/parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/less/parser.js b/lib/less/parser.js index ac77b407..30f3da67 100644 --- a/lib/less/parser.js +++ b/lib/less/parser.js @@ -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();