You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
450 B

  1. <?php
  2. namespace dokuwiki\Parsing\ParserMode;
  3. /**
  4. * Implements the 640x480 replacement
  5. */
  6. class Multiplyentity extends AbstractMode
  7. {
  8. /** @inheritdoc */
  9. public function connectTo($mode)
  10. {
  11. $this->Lexer->addSpecialPattern(
  12. '(?<=\b)(?:[1-9]|\d{2,})[xX]\d+(?=\b)',
  13. $mode,
  14. 'multiplyentity'
  15. );
  16. }
  17. /** @inheritdoc */
  18. public function getSort()
  19. {
  20. return 270;
  21. }
  22. }