LightnCandy\Validator::isDelimiter PHP Method

isDelimiter() protected static method

handle delimiter change
protected static isDelimiter ( array\arraystring | integer> &$context ) : boolean | null
$context array\arraystring | integer>
return boolean | null Return true when delimiter changed
    protected static function isDelimiter(&$context)
    {
        if (preg_match('/^=\\s*([^ ]+)\\s+([^ ]+)\\s*=$/', $context['currentToken'][Token::POS_INNERTAG], $matched)) {
            $context['usedFeature']['delimiter']++;
            Parser::setDelimiter($context, $matched[1], $matched[2]);
            return true;
        }
    }