vendor/bundle/ruby/2.5.0/gems/sass-3.7.2/lib/sass/scss/parser.rb
# Expose for the SASS parser.
Expose for the SASS parser.
Expose for the SASS parser .
def media_query
        if (ident1 = interp_ident)
          ss
          ident2 = interp_ident
          ss
          if ident2 && ident2.length == 1 && ident2[0].is_a?(String) && ident2[0].downcase == 'and'
            query = Sass::Media::Query.new([], ident1, [])
          else
            if ident2
              query = Sass::Media::Query.new(ident1, ident2, [])
            else
              query = Sass::Media::Query.new([], ident1, [])
            end
            return query unless tok(/and/i)
            ss
          end
        end
        if query
          expr = expr!(:media_expr)
        else
          expr = media_expr
          return unless expr
        end
        query ||= Sass::Media::Query.new([], [], [])
        query.expressions << expr
        ss
        while tok(/and/i)
          ss; query.expressions << expr!(:media_expr)
        end
        query
      end
def media_query if ( ident1 = interp_ident ) ss ident2 = interp_ident ss if ident2 && ident2 . length == 1 && ident2 [ 0 ] . is_a? ( String ) && ident2 [ 0 ] . downcase == 'and' query = Sass :: Media :: Query . new ( [ ] , ident1 , [ ] ) else if ident2 query = Sass :: Media :: Query . new ( ident1 , ident2 , [ ] ) else query = Sass :: Media :: Query . new ( [ ] , ident1 , [ ] ) end return query unless tok ( / and /i ) ss end end if query expr = expr! ( :media_expr ) else expr = media_expr return unless expr end query ||= Sass :: Media :: Query . new ( [ ] , [ ] , [ ] ) query . expressions << expr ss while tok ( / and /i ) ss ; query . expressions << expr! ( :media_expr ) end query end
Expose for the SASS parser.
Expose for the SASS parser .