vendor/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/parser.rb
# Expose for the SASS parser.
Expose for the SASS parser.
Expose for the SASS parser .
def import_arg
        start_pos = source_position
        return unless (str = string) || (uri = tok?(/url\(/i))
        if uri
          str = sass_script(:parse_string)
          ss
          supports = supports_clause
          ss
          media = media_query_list
          ss
          return node(Tree::CssImportNode.new(str, media.to_a, supports), start_pos)
        end
        ss
        supports = supports_clause
        ss
        media = media_query_list
        if str =~ %r{^(https?:)?//} || media || supports || use_css_import?
          return node(
            Sass::Tree::CssImportNode.new(
              Sass::Script::Value::String.quote(str), media.to_a, supports), start_pos)
        end
        node(Sass::Tree::ImportNode.new(str.strip), start_pos)
      end
def import_arg start_pos = source_position return unless ( str = string ) || ( uri = tok? ( / url \( /i ) ) if uri str = sass_script ( :parse_string ) ss supports = supports_clause ss media = media_query_list ss return node ( Tree :: CssImportNode . new ( str , media . to_a , supports ) , start_pos ) end ss supports = supports_clause ss media = media_query_list if str =~ %r{ ^(https?:)?// } || media || supports || use_css_import? return node ( Sass :: Tree :: CssImportNode . new ( Sass :: Script :: Value :: String . quote ( str ) , media . to_a , supports ) , start_pos ) end node ( Sass :: Tree :: ImportNode . new ( str . strip ) , start_pos ) end
Expose for the SASS parser.
Expose for the SASS parser .