mirror of
https://github.com/less/less.js.git
synced 2026-01-23 22:27:57 -05:00
pass a context to directive(), so it can parse a block
This commit is contained in:
@@ -159,8 +159,8 @@ less.parser = {
|
||||
var node;
|
||||
|
||||
while (node = $(this.ruleset, []) || $(this.rule) || $(this.mixin.definition, []) ||
|
||||
$(this.mixin.call) || $(/\/\*([^*]|\*+[^\/*])*\*+\//g) || $(/\/\/.*/g) ||
|
||||
$(/[\n\s]+/g) || $(this.directive)) {
|
||||
$(this.mixin.call) || $(/\/\*(?:[^*]|\*+[^\/*])*\*+\//g) || $(/\/\/.*/g) ||
|
||||
$(/[\n\s]+/g) || $(this.directive, [])) {
|
||||
root.push(node);
|
||||
}
|
||||
return root;
|
||||
|
||||
Reference in New Issue
Block a user