Initial commit
This commit is contained in:
		
							
								
								
									
										23
									
								
								content/inc/Parsing/ParserMode/Camelcaselink.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								content/inc/Parsing/ParserMode/Camelcaselink.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace dokuwiki\Parsing\ParserMode;
 | 
			
		||||
 | 
			
		||||
class Camelcaselink extends AbstractMode
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
    /** @inheritdoc */
 | 
			
		||||
    public function connectTo($mode)
 | 
			
		||||
    {
 | 
			
		||||
        $this->Lexer->addSpecialPattern(
 | 
			
		||||
            '\b[A-Z]+[a-z]+[A-Z][A-Za-z]*\b',
 | 
			
		||||
            $mode,
 | 
			
		||||
            'camelcaselink'
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /** @inheritdoc */
 | 
			
		||||
    public function getSort()
 | 
			
		||||
    {
 | 
			
		||||
        return 290;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user