mirror of
https://github.com/less/less.js.git
synced 2026-02-09 14:35:44 -05:00
Allow multiline javascript expressions, fixes #885
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user