From f303793e263ee581fb4ae5561f3f5b47b28d785f Mon Sep 17 00:00:00 2001 From: xzyfer Date: Wed, 7 Jan 2015 23:53:45 +1100 Subject: [PATCH] Output the @import if it's a http or https path --- parser.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/parser.cpp b/parser.cpp index 9463edc1c..2aa8005f8 100644 --- a/parser.cpp +++ b/parser.cpp @@ -207,7 +207,15 @@ namespace Sass { } } - add_single_file(imp, import_path); + if (!unquote(import_path).substr(0, 7).compare("http://") || + !unquote(import_path).substr(0, 8).compare("https://") || + !unquote(import_path).substr(0, 2).compare("//")) + { + imp->urls().push_back(new (ctx.mem) String_Constant(pstate, import_path)); + } + else { + add_single_file(imp, import_path); + } } else if (peek< uri_prefix >()) {