Lexer->addSpecialPattern('~~NOTOC~~', $mode, 'notoc'); } /** @inheritdoc */ public function handle($match, $state, $pos, Handler $handler) { $handler->addCall('notoc', [], $pos); return true; } }