mirror of
https://github.com/less/less.js.git
synced 2026-02-03 19:45:00 -05:00
fix syntax error with semi-colons in strings
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user