From 356ba4fd0d1cbd08934b54706d353bc5619d25ae Mon Sep 17 00:00:00 2001 From: James Foster Date: Wed, 30 Jun 2010 03:26:17 +0800 Subject: [PATCH] Fixed inner quotes --- lib/less/parser.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/less/parser.js b/lib/less/parser.js index b7cbde4..67a6cac 100644 --- a/lib/less/parser.js +++ b/lib/less/parser.js @@ -227,7 +227,11 @@ less.Parser = function Parser(env) { chunks[++j] = []; } else { if (c === '"' || c === "'") { - inString = inString === c ? false : c; + if (!inString) { + inString = c; + } else { + inString = inString === c ? false : inString; + } } chunk.push(c); }