mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
quote 'import' so it doesn't freak out
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user