Skip to content

Commit e1599c7

Browse files
author
Aaron Leung
committed
Merge pull request #378 from wonja/loud_comments
Loud comments
2 parents 95be227 + 8b255f8 commit e1599c7

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

output_compressed.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "inspect.hpp"
33
#include "ast.hpp"
44
#include "context.hpp"
5+
#include "to_string.hpp"
56

67
namespace Sass {
78
using namespace std;
@@ -183,7 +184,16 @@ namespace Sass {
183184

184185
void Output_Compressed::operator()(Comment* c)
185186
{
186-
return;
187+
To_String to_string;
188+
string txt = c->text()->perform(&to_string);
189+
if(txt[2] != '!') {
190+
return;
191+
}
192+
else {
193+
Inspect i(ctx);
194+
c->perform(&i);
195+
buffer += i.get_buffer();
196+
}
187197
}
188198

189199
void Output_Compressed::operator()(List* list)

sass2scss

0 commit comments

Comments
 (0)