mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
fix comments in mixins.
This commit is contained in:
@@ -351,10 +351,10 @@ less.Parser = function Parser(env) {
|
||||
|
||||
if (input.charAt(i) !== '/') return;
|
||||
|
||||
if (comment = $(/\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/g)) {
|
||||
if (input.charAt(i + 1) === '/') {
|
||||
return new(tree.Comment)($(/\/\/.*/g), true);
|
||||
} else if (comment = $(/\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/g)) {
|
||||
return new(tree.Comment)(comment);
|
||||
} else {
|
||||
return $(/\/\/.*/g);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user