mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
Properly chunkify ``
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user