Camelcaselink.php 396 B

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