mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Merge pull request #2797 from seven-phases-max/fix-variable-call-whitespace
Disallow whitespace in variable calls (i.e "DR"-calls)
This commit is contained in:
@@ -587,7 +587,7 @@ var Parser = function Parser(context, imports, fileInfo) {
|
||||
rulesetCall: function () {
|
||||
var name;
|
||||
|
||||
if (parserInput.currentChar() === '@' && (name = parserInput.$re(/^(@[\w-]+)\s*\(\s*\)\s*;/))) {
|
||||
if (parserInput.currentChar() === '@' && (name = parserInput.$re(/^(@[\w-]+)\(\s*\)\s*;/))) {
|
||||
return new tree.RulesetCall(name[1]);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user