File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace Sass {
15
15
scheduled_linefeed(0 ),
16
16
scheduled_delimiter(false ),
17
17
in_comment(false ),
18
- in_at_rule (false ),
18
+ in_wrapped (false ),
19
19
in_media_block(false ),
20
20
in_declaration(false ),
21
21
in_declaration_list(false )
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ namespace Sass {
38
38
39
39
public:
40
40
bool in_comment;
41
- bool in_at_rule ;
41
+ bool in_wrapped ;
42
42
bool in_media_block;
43
43
bool in_declaration;
44
44
bool in_declaration_list;
Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ namespace Sass {
103
103
append_token (at_rule->keyword (), at_rule);
104
104
if (at_rule->selector ()) {
105
105
append_mandatory_space ();
106
- in_at_rule = true ;
106
+ in_wrapped = true ;
107
107
at_rule->selector ()->perform (this );
108
- in_at_rule = false ;
108
+ in_wrapped = false ;
109
109
}
110
110
if (at_rule->block ()) {
111
111
at_rule->block ()->perform (this );
@@ -791,9 +791,12 @@ namespace Sass {
791
791
792
792
void Inspect::operator ()(Wrapped_Selector* s)
793
793
{
794
+ bool was = in_wrapped;
795
+ in_wrapped = true ;
794
796
append_token (s->name (), s);
795
797
s->selector ()->perform (this );
796
798
append_string (" )" );
799
+ in_wrapped = was;
797
800
}
798
801
799
802
void Inspect::operator ()(Compound_Selector* s)
@@ -848,7 +851,7 @@ namespace Sass {
848
851
{
849
852
if (g->empty ()) return ;
850
853
for (size_t i = 0 , L = g->length (); i < L; ++i) {
851
- if (!in_at_rule && i == 0 ) append_indentation ();
854
+ if (!in_wrapped && i == 0 ) append_indentation ();
852
855
(*g)[i]->perform (this );
853
856
if (i < L - 1 ) {
854
857
append_comma_separator ();
Original file line number Diff line number Diff line change @@ -337,9 +337,9 @@ namespace Sass {
337
337
append_token (kwd, a);
338
338
if (s) {
339
339
append_mandatory_space ();
340
- in_at_rule = true ;
340
+ in_wrapped = true ;
341
341
s->perform (this );
342
- in_at_rule = false ;
342
+ in_wrapped = false ;
343
343
}
344
344
else if (v) {
345
345
append_mandatory_space ();
You can’t perform that action at this time.
0 commit comments