1<?php
2
3namespace dokuwiki\Parsing\ParserMode;
4
5class Windowssharelink extends AbstractMode
6{
7    protected $pattern;
8
9    /** @inheritdoc */
10    public function preConnect()
11    {
12        $this->pattern = "\\\\\\\\\w+?(?:\\\\[\w\-$]+)+";
13    }
14
15    /** @inheritdoc */
16    public function connectTo($mode)
17    {
18        $this->Lexer->addSpecialPattern(
19            $this->pattern,
20            $mode,
21            'windowssharelink'
22        );
23    }
24
25    /** @inheritdoc */
26    public function getSort()
27    {
28        return 350;
29    }
30}
31