1<?php
2
3namespace dokuwiki\Parsing\ParserMode;
4
5class Media extends AbstractMode
6{
7
8    /** @inheritdoc */
9    public function connectTo($mode)
10    {
11        // Word boundaries?
12        $this->Lexer->addSpecialPattern("\{\{(?:[^\}]|(?:\}[^\}]))+\}\}", $mode, 'media');
13    }
14
15    /** @inheritdoc */
16    public function getSort()
17    {
18        return 320;
19    }
20}
21