better comment parsing in selector list

This commit is contained in:
Alexis Sellier
2011-03-24 14:42:30 -04:00
parent d444d1bbdb
commit f5ffdde710
3 changed files with 9 additions and 1 deletions

View File

@@ -868,9 +868,10 @@ less.Parser = function Parser(env) {
} else {
while (s = $(this.selector)) {
selectors.push(s);
$(this.comment);
if (! $(',')) { break }
$(this.comment);
}
if (s) $(this.comment);
}
if (selectors.length > 0 && (rules = $(this.block))) {

View File

@@ -44,6 +44,9 @@
color: grey;
}
*/
.selector, .lots, .comments {
color: grey, /* blue */ orange;
}
#last {
color: blue;
}

View File

@@ -55,5 +55,9 @@
}
*/
.selector /* .with */, .lots, /* of */ .comments {
color: grey, /* blue */ orange;
}
#last { color: blue }
//