class Sass::Script::Parser
def min_max_contents(allow_comma: true)
def min_max_contents(allow_comma: true) result = [] loop do if tok = try_tok(:number) result << tok.value.to_s elsif value = min_max_interpolation result << value elsif value = min_max_calc result << value.value elsif value = min_max_function || min_max_parens || nested_min_max result.concat value else return end if try_tok(:rparen) result << ")" return result elsif tok = try_tok(:plus) || try_tok(:minus) || try_tok(:times) || try_tok(:div) result << " #{Lexer::OPERATORS_REVERSE[tok.type]} " elsif allow_comma && try_tok(:comma) result << ", " else return end end end