File tree Expand file tree Collapse file tree 4 files changed +18
-15
lines changed Expand file tree Collapse file tree 4 files changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -1322,12 +1322,12 @@ namespace Sass {
1322
1322
ss->head (NULL );
1323
1323
}
1324
1324
// adjust for parent selector (1 char)
1325
- if (h->length ()) {
1326
- ParserState state (h->at (0 )->pstate ());
1327
- state.offset .column += 1 ;
1328
- state.column -= 1 ;
1329
- (*h)[0 ]->pstate (state);
1330
- }
1325
+ // if (h->length()) {
1326
+ // ParserState state(h->at(0)->pstate());
1327
+ // state.offset.column += 1;
1328
+ // state.column -= 1;
1329
+ // (*h)[0]->pstate(state);
1330
+ // }
1331
1331
// keep old parser state
1332
1332
s->pstate (pstate ());
1333
1333
// append new tail
@@ -1360,12 +1360,12 @@ namespace Sass {
1360
1360
// \/ IMO ruby sass bug \/
1361
1361
ss->has_line_feed (false );
1362
1362
// adjust for parent selector (1 char)
1363
- if (h->length ()) {
1364
- ParserState state (h->at (0 )->pstate ());
1365
- state.offset .column += 1 ;
1366
- state.column -= 1 ;
1367
- (*h)[0 ]->pstate (state);
1368
- }
1363
+ // if (h->length()) {
1364
+ // ParserState state(h->at(0)->pstate());
1365
+ // state.offset.column += 1;
1366
+ // state.column -= 1;
1367
+ // (*h)[0]->pstate(state);
1368
+ // }
1369
1369
// keep old parser state
1370
1370
s->pstate (pstate ());
1371
1371
// append new tail
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ namespace Sass {
14
14
scheduled_space(0 ),
15
15
scheduled_linefeed(0 ),
16
16
scheduled_delimiter(false ),
17
+ scheduled_crutch(0 ),
17
18
scheduled_mapping(0 ),
18
19
in_custom_property(false ),
19
20
in_comment(false ),
@@ -162,9 +163,9 @@ namespace Sass {
162
163
add_open_mapping (node);
163
164
// hotfix for browser issues
164
165
// this is pretty ugly indeed
165
- if (scheduled_mapping ) {
166
- add_open_mapping (scheduled_mapping );
167
- scheduled_mapping = 0 ;
166
+ if (scheduled_crutch ) {
167
+ add_open_mapping (scheduled_crutch );
168
+ scheduled_crutch = 0 ;
168
169
}
169
170
append_string (text);
170
171
add_close_mapping (node);
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ namespace Sass {
37
37
size_t scheduled_space;
38
38
size_t scheduled_linefeed;
39
39
bool scheduled_delimiter;
40
+ AST_Node_Ptr scheduled_crutch;
40
41
AST_Node_Ptr scheduled_mapping;
41
42
42
43
public:
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ namespace Sass {
134
134
append_string (ss.str ());
135
135
append_optional_linefeed ();
136
136
}
137
+ scheduled_crutch = s;
137
138
if (s) s->perform (this );
138
139
append_scope_opener (b);
139
140
for (size_t i = 0 , L = b->length (); i < L; ++i) {
You can’t perform that action at this time.
0 commit comments