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