allowedModes = ModeRegistry::getInstance()->getModesForCategories([ ModeRegistry::CATEGORY_FORMATTING, ModeRegistry::CATEGORY_SUBSTITION, ModeRegistry::CATEGORY_DISABLED, ModeRegistry::CATEGORY_PROTECTED, ]); } /** @inheritdoc */ public function connectTo($mode) { $this->Lexer->addEntryPattern('\n>{1,}', $mode, 'quote'); } /** @inheritdoc */ public function postConnect() { $this->Lexer->addPattern('\n>{1,}', 'quote'); $this->Lexer->addExitPattern('\n', 'quote'); } /** @inheritdoc */ public function getSort() { return 220; } }