fix comments in mixins.

This commit is contained in:
cloudhead
2010-06-16 02:13:59 -04:00
parent 75245d98bb
commit a1e1f01338
5 changed files with 23 additions and 10 deletions

View File

@@ -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);
}
},