FOF30\Less\Parser\Parser::tagBracket PHP Method

tagBracket() protected method

A bracketed value (contained within in a tag definition)
protected tagBracket ( &$value ) : boolean
return boolean
    protected function tagBracket(&$value)
    {
        // Speed shortcut
        if (isset($this->buffer[$this->count]) && $this->buffer[$this->count] != "[") {
            return false;
        }
        $s = $this->seek();
        if ($this->literal('[') && $this->to(']', $c, true) && $this->literal(']', false)) {
            $value = '[' . $c . ']';
            // Whitespace?
            if ($this->whitespace()) {
                $value .= " ";
            }
            // Escape parent selector, (yuck)
            $value = str_replace($this->lessc->parentSelector, "\$&\$", $value);
            return true;
        }
        $this->seek($s);
        return false;
    }