Skip to content

Commit

Permalink
Merge branch 'master' into master_fix_3767_2
Browse files Browse the repository at this point in the history
  • Loading branch information
puckowski committed Dec 15, 2024
2 parents fcae98c + 145d95e commit f62f5f8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/less/src/less/parser/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2433,7 +2433,7 @@ const Parser = function Parser(context, imports, fileInfo, currentIndex) {

do {
e = this.comment();
if (e) {
if (e && !e.isLineComment) {
entities.push(e);
continue;
}
Expand Down
15 changes: 15 additions & 0 deletions packages/test-data/css/_main/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,18 @@
m-8: hello;
m-9: 'a.hello';
}
div#apple {
color: blue;
}
div#banana {
color: blue;
}
div#cherry {
color: blue;
}
div#carrot {
color: blue;
}
div#potato {
color: blue;
}
16 changes: 16 additions & 0 deletions packages/test-data/less/_main/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,19 @@
m-8: @mixedSix;
m-9: @mixedSeven;
}

@items:
// Fruit
apple,
banana,
cherry,
// Vegetables
carrot,
potato,
;

each(@items, {
div#@{value} {
color: blue;
}
})

0 comments on commit f62f5f8

Please sign in to comment.