Guest User

Untitled

a guest
Feb 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. { name = 'markup.bold.markdown';
  2. begin = '(\*\*|__)(?=\S)(?=.+?(?<=\S)\1)';
  3. end = '(?<=\S)\1';
  4. patterns = (
  5. { name = 'markup.italic.markdown';
  6. match = '_(?=\S)[^_]+?(?<=\S)_(?=([^_])|(__|\*\*))';
  7. },
  8. { name = 'markup.italic.markdown';
  9. match = '\*(?=\S)[^\*]+?(?<=\S)\*(?=([^_])|(__|\*\*))';
  10. },
  11. );
  12. },
  13. { name = 'markup.italic.markdown';
  14. match = '(?x)
  15. (\*|_) # Start italic
  16. ((\*\*|__).+?\3)? # Bold
  17. ([^_*]*) # Anything Else
  18. ((\*\*|__).+?\6)? # Bold
  19. ([^_*]*) # Anything Else
  20. ((\*\*|__).+?\9)? # Bold
  21. (.*?) # Anything Else
  22. \1
  23. ';
  24. captures = {
  25. 2 = { name = 'constant'; };
  26. 4 = { name = 'test1'; };
  27. 5 = { name = 'constant'; };
  28. 7 = { name = 'test2'; };
  29. 8 = { name = 'constant'; };
  30. 10 = { name = 'test3'; };
  31. };
  32. },
Add Comment
Please, Sign In to add comment