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.
 
 
 
 
 

31 lines
535 B

  1. <?php
  2. namespace dokuwiki\Parsing\ParserMode;
  3. class Windowssharelink extends AbstractMode
  4. {
  5. protected $pattern;
  6. /** @inheritdoc */
  7. public function preConnect()
  8. {
  9. $this->pattern = "\\\\\\\\\w+?(?:\\\\[\w\-$]+)+";
  10. }
  11. /** @inheritdoc */
  12. public function connectTo($mode)
  13. {
  14. $this->Lexer->addSpecialPattern(
  15. $this->pattern,
  16. $mode,
  17. 'windowssharelink'
  18. );
  19. }
  20. /** @inheritdoc */
  21. public function getSort()
  22. {
  23. return 350;
  24. }
  25. }