From d39d22496d3f2511a9de2784a79bd7bef758f87f Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 12 Jul 2010 08:05:39 -0400 Subject: [PATCH] Properly chunkify `` --- lib/less/parser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/less/parser.js b/lib/less/parser.js index 58860281..9d1d199c 100644 --- a/lib/less/parser.js +++ b/lib/less/parser.js @@ -199,7 +199,7 @@ less.Parser = function Parser(env) { // Split the input into chunks. chunks = (function (chunks) { var j = 0, - skip = /[^"'\{\}\/]+/g, + skip = /[^"'`\{\}\/]+/g, comment = /\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g, level = 0, match, @@ -236,8 +236,8 @@ less.Parser = function Parser(env) { chunk.push(c); chunks[++j] = chunk = []; } else { - if (c === '"' || c === "'") { - if (!inString) { + if (c === '"' || c === "'" || c === '`') { + if (! inString) { inString = c; } else { inString = inString === c ? false : inString;