Initial commit
This commit is contained in:
		
							
								
								
									
										31
									
								
								content/inc/Parsing/ParserMode/Windowssharelink.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								content/inc/Parsing/ParserMode/Windowssharelink.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,31 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace dokuwiki\Parsing\ParserMode;
 | 
			
		||||
 | 
			
		||||
class Windowssharelink extends AbstractMode
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
    protected $pattern;
 | 
			
		||||
 | 
			
		||||
    /** @inheritdoc */
 | 
			
		||||
    public function preConnect()
 | 
			
		||||
    {
 | 
			
		||||
        $this->pattern = "\\\\\\\\\w+?(?:\\\\[\w\-$]+)+";
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /** @inheritdoc */
 | 
			
		||||
    public function connectTo($mode)
 | 
			
		||||
    {
 | 
			
		||||
        $this->Lexer->addSpecialPattern(
 | 
			
		||||
            $this->pattern,
 | 
			
		||||
            $mode,
 | 
			
		||||
            'windowssharelink'
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /** @inheritdoc */
 | 
			
		||||
    public function getSort()
 | 
			
		||||
    {
 | 
			
		||||
        return 350;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user