Initial commit
This commit is contained in:
		
							
								
								
									
										27
									
								
								content/inc/Parsing/ParserMode/Multiplyentity.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								content/inc/Parsing/ParserMode/Multiplyentity.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
<?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;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user