Allow multiline javascript expressions, fixes #885

This commit is contained in:
Luke Page
2012-09-02 16:33:15 +01:00
parent 559231a4db
commit 55d6e5a0ba
3 changed files with 4 additions and 1 deletions

View File

@@ -284,7 +284,7 @@ less.Parser = function Parser(env) {
var j = 0,
skip = /(?:@\{[\w-]+\}|[^"'`\{\}\/\(\)\\])+/g,
comment = /\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,
string = /"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'|`((?:[^`\\\r\n]|\\.)*)`/g,
string = /"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'|`((?:[^`]|\\.)*)`/g,
level = 0,
match,
chunk = chunks[0],