File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -681,10 +681,18 @@ namespace Sass {
681
681
682
682
if (compound->length () != 1 ) {
683
683
684
- std::cerr <<
685
- " compound selectors may no longer be extended.\n "
686
- " Consider `@extend ${compound.components.join(', ')}` instead.\n "
687
- " See http://bit.ly/ExtendCompound for details.\n " ;
684
+ std::stringstream sels; bool addComma = false ;
685
+ sels << " Compound selectors may no longer be extended.\n " ;
686
+ sels << " Consider `@extend " ;
687
+ for (auto sel : compound->elements ()) {
688
+ if (addComma) sels << " , " ;
689
+ sels << sel->to_sass ();
690
+ addComma = true ;
691
+ }
692
+ sels << " ` instead.\n " ;
693
+ sels << " See http://bit.ly/ExtendCompound for details." ;
694
+
695
+ warning (sels.str (), compound->pstate ());
688
696
689
697
// Make this an error once deprecation is over
690
698
for (SimpleSelectorObj simple : compound->elements ()) {
You can’t perform that action at this time.
0 commit comments