Guest User

Untitled

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