File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ namespace Sass {
113
113
sort (c_importers.begin (), c_importers.end (), sort_importers);
114
114
std::string entry_point = initializers.entry_point ();
115
115
if (!entry_point.empty ()) {
116
- std::string result (add_file (entry_point));
116
+ std::string result (add_file (entry_point, true ));
117
117
if (result.empty ()) {
118
118
throw " File to read not found or unreadable: " + entry_point;
119
119
}
@@ -231,7 +231,7 @@ namespace Sass {
231
231
}
232
232
233
233
// Add a new import file to the context
234
- std::string Context::add_file (const std::string& file)
234
+ std::string Context::add_file (const std::string& file, bool delay )
235
235
{
236
236
using namespace File ;
237
237
std::string path (make_canonical_path (file));
@@ -240,8 +240,10 @@ namespace Sass {
240
240
if (char * contents = read_file (resolved)) {
241
241
add_source (path, resolved, contents);
242
242
style_sheets[path] = 0 ;
243
- size_t i = queue.size () - 1 ;
244
- process_queue_entry (queue[i], i);
243
+ if (delay == false ) {
244
+ size_t i = queue.size () - 1 ;
245
+ process_queue_entry (queue[i], i);
246
+ }
245
247
return path;
246
248
}
247
249
return std::string (" " );
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ namespace Sass {
110
110
Block* parse_string ();
111
111
void add_source (std::string, std::string, char *);
112
112
113
- std::string add_file (const std::string& imp_path);
113
+ std::string add_file (const std::string& imp_path, bool delay = false );
114
114
std::string add_file (const std::string& imp_path, const std::string& abs_path, ParserState pstate);
115
115
116
116
void process_queue_entry (Sass_Queued& entry, size_t idx);
You can’t perform that action at this time.
0 commit comments