mirror of
https://github.com/less/less.js.git
synced 2026-01-20 20:58:07 -05:00
better comment parsing in selector list
This commit is contained in:
@@ -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))) {
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
color: grey;
|
||||
}
|
||||
*/
|
||||
.selector, .lots, .comments {
|
||||
color: grey, /* blue */ orange;
|
||||
}
|
||||
#last {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
@@ -55,5 +55,9 @@
|
||||
}
|
||||
*/
|
||||
|
||||
.selector /* .with */, .lots, /* of */ .comments {
|
||||
color: grey, /* blue */ orange;
|
||||
}
|
||||
|
||||
#last { color: blue }
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user