8000 quote 'import' so it doesn't freak out · rusongyu/less.js@e3df967 · GitHub
[go: up one dir, main page]

Skip to content

Commit e3df967

Browse files
author
cloudhead
committed
quote 'import' so it doesn't freak out
1 parent 11f71f3 commit e3df967

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/less/parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ less.Parser = function Parser(env) {
727727
// file-system operation. The function used for importing is
728728
// stored in `import`, which we pass to the Import constructor.
729729
//
730-
import: function () {
730+
"import": function () {
731731
var path;
732732
if ($(/@import\s+/g) &&
733733
(path = $(this.entities.quoted) || $(this.entities.url)) &&
@@ -746,7 +746,7 @@ less.Parser = function Parser(env) {
746746

747747
if (input[i] !== '@') return;
748748

749-
if (value = $(this.import)) {
749+
if (value = $(this['import'])) {
750750
return value;
751751
} else if (name = $(/@media|@page/g)) {
752752
types = $(/[a-z:, ]+/g).trim();

0 commit comments

Comments
 (0)
0