fix syntax error with semi-colons in strings

This commit is contained in:
cloudhead
2010-07-01 10:46:31 +02:00
parent 494398e736
commit cbb432edef
3 changed files with 3 additions and 1 deletions

View File

@@ -852,7 +852,7 @@ less.Parser = function Parser(env) {
if (c === '.' || c === '#' || c === '&') { return }
if (name = $(this.variable) || $(this.property)) {
if ((name.charAt(0) != '@') && (match = /^([^@+\/*(;{}-]*);/.exec(chunks[j]))) {
if ((name.charAt(0) != '@') && (match = /^([^@+\/'"*(;{}-]*);/.exec(chunks[j]))) {
i += match[0].length - 1;
value = new(tree.Anonymous)(match[1]);
} else if (name === "font") {

View File

@@ -12,4 +12,5 @@
quotes: "'" "'";
content: '""#!&""';
empty: '';
semi-colon: ';';
}

View File

@@ -12,4 +12,5 @@
quotes: "'" "'";
content: '""#!&""';
empty: '';
semi-colon: ';';
}