FOF30\Less\Parser\Parser::argumentValues PHP Method

argumentValues() protected method

Consume a list of property values delimited by ; and wrapped in ()
protected argumentValues ( &$args, [type] $delim = ',' ) : boolean
$delim [type]
return boolean
    protected function argumentValues(&$args, $delim = ',')
    {
        $s = $this->seek();
        if (!$this->literal('(')) {
            return false;
        }
        $values = array();
        while (true) {
            if ($this->expressionList($value)) {
                $values[] = $value;
            }
            if (!$this->literal($delim)) {
                break;
            } else {
                if ($value == null) {
                    $values[] = null;
                }
                $value = null;
            }
        }
        if (!$this->literal(')')) {
            $this->seek($s);
            return false;
        }
        $args = $values;
        return true;
    }