Windowssharelink.php 536 B

12345678910111213141516171819202122232425262728293031
  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. }