aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Parsing/ParserMode/Multiplyentity.php
blob: 8ae21134aa61843e7ad23d104e807c03b810ac2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

namespace dokuwiki\Parsing\ParserMode;

/**
 * Implements the 640x480 replacement
 */
class Multiplyentity extends AbstractMode
{
    /** @inheritdoc */
    public function connectTo($mode)
    {

        $this->Lexer->addSpecialPattern(
            '(?<=\b)(?:[1-9]|\d{2,})[xX]\d+(?=\b)',
            $mode,
            'multiplyentity'
        );
    }

    /** @inheritdoc */
    public function getSort()
    {
        return 270;
    }
}