1<?php
2
3namespace dokuwiki\Parsing\ParserMode;
4
5class File extends AbstractMode
6{
7    /** @inheritdoc */
8    public function connectTo($mode)
9    {
10        $this->Lexer->addEntryPattern('<file\b(?=.*</file>)', $mode, 'file');
11    }
12
13    /** @inheritdoc */
14    public function postConnect()
15    {
16        $this->Lexer->addExitPattern('</file>', 'file');
17    }
18
19    /** @inheritdoc */
20    public function getSort()
21    {
22        return 210;
23    }
24}
25