mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
don't remove duplicate comments, fixes #1067
This commit is contained in:
@@ -244,7 +244,7 @@ tree.Ruleset.prototype = {
|
||||
|
||||
// Remove duplicates
|
||||
for (var i = rules.length - 1; i >= 0; i--) {
|
||||
if (_rules.indexOf(rules[i]) === -1) {
|
||||
if (rules[i].slice(0, 2) === "/*" || _rules.indexOf(rules[i]) === -1) {
|
||||
_rules.unshift(rules[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
/**/
|
||||
color: red;
|
||||
/* A C-style comment */
|
||||
/* A C-style comment */
|
||||
|
||||
background-color: orange;
|
||||
font-size: 12px;
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
------------------- */
|
||||
#comments /* boo */ {
|
||||
/**/ // An empty comment
|
||||
color: red; /* A C-style comment */
|
||||
color: red; /* A C-style comment */ /* A C-style comment */
|
||||
background-color: orange; // A little comment
|
||||
font-size: 12px;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user