Fixed inner quotes

This commit is contained in:
James Foster 2010-06-30 03:26:17 +08:00 committed by Alexis Sellier
parent f51c923a5d
commit 356ba4fd0d

View File

@ -227,7 +227,11 @@ less.Parser = function Parser(env) {
chunks[++j] = []; chunks[++j] = [];
} else { } else {
if (c === '"' || c === "'") { if (c === '"' || c === "'") {
inString = inString === c ? false : c; if (!inString) {
inString = c;
} else {
inString = inString === c ? false : inString;
}
} }
chunk.push(c); chunk.push(c);
} }