1*be906b56SAndreas Gohr<?php 2*be906b56SAndreas Gohr 3*be906b56SAndreas Gohrnamespace dokuwiki\Parsing\ParserMode; 4*be906b56SAndreas Gohr 5*be906b56SAndreas Gohrclass Camelcaselink extends AbstractMode 6*be906b56SAndreas Gohr{ 7*be906b56SAndreas Gohr 8*be906b56SAndreas Gohr /** @inheritdoc */ 9*be906b56SAndreas Gohr public function connectTo($mode) 10*be906b56SAndreas Gohr { 11*be906b56SAndreas Gohr $this->Lexer->addSpecialPattern( 12*be906b56SAndreas Gohr '\b[A-Z]+[a-z]+[A-Z][A-Za-z]*\b', 13*be906b56SAndreas Gohr $mode, 14*be906b56SAndreas Gohr 'camelcaselink' 15*be906b56SAndreas Gohr ); 16*be906b56SAndreas Gohr } 17*be906b56SAndreas Gohr 18*be906b56SAndreas Gohr /** @inheritdoc */ 19*be906b56SAndreas Gohr public function getSort() 20*be906b56SAndreas Gohr { 21*be906b56SAndreas Gohr return 290; 22*be906b56SAndreas Gohr } 23*be906b56SAndreas Gohr} 24