Guest User

Untitled

a guest
Feb 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. array =
  2. { begin = '(\()';
  3. end = '(\))';
  4. captures = { 1 = { name = 'keyword.operator.array.tm-language-def'; }; };
  5. patterns = (
  6. { include = '#comment'; },
  7. { begin = '(?=[^\s,])';
  8. end = '(,)|(?=\))';
  9. endCaptures = { 1 = { name = 'keyword.operator.array-separator.tm-language-def'; }; };
  10. patterns = (
  11. { match = '\s+(?=//|/\*)'; },
  12. { include = '#comment'; },
  13. { name = 'invalid.illegal.missing-comma.tm-language-def';
  14. begin = '[[^\n]&&\s](?!\s*(,|\)|$)).*';
  15. end = '^(?=not)possible$';
  16. },
  17. { include = '#any'; },
  18. );
  19. },
  20. { include = '#catch-all'; },
  21. );
  22. };
  23. catch-all = { patterns = (
  24. { match = '\s+'; },
  25. { name = 'invalid.illegal.unrecognized-character.tm-language-def';
  26. match = '.';
  27. },
  28. );
  29. };
  30. comment-keyword =
  31. { begin = '\b(comment)\s*(=)';
  32. end = '(;)';
  33. beginCaptures =
  34. { 1 = { name = 'support.constant.tm-language-def'; };
  35. 2 = { name = 'keyword.operator.dictionary.tm-language-def'; };
  36. };
  37. endCaptures = { 1 = { name = 'keyword.operator.dictionary.tm-language-def'; }; };
  38. patterns = (
  39. { name = 'string.quoted.single.tm-language-def';
  40. begin = "'";
  41. end = "'";
  42. contentName = 'comment.block.string.tm-language-def';
  43. },
  44. { name = 'string.quoted.double.tm-language-def';
  45. begin = '"';
  46. end = '"';
  47. contentName = 'comment.block.string.tm-language-def';
  48. },
  49. { include = '#comment'; },
  50. { include = '#catch-all'; },
  51. );
  52. };
  53. dictionary =
  54. { begin = '(\{)';
  55. end = '(\})';
  56. captures = { 1 = { name = 'keyword.operator.dictionary.tm-language-def'; }; };
  57. patterns = (
  58. { include = '#string'; },
  59. { include = '#comment'; },
  60. { begin = '(=)';
  61. end = '(;)';
  62. captures = { 1 = { name = 'keyword.operator.dictionary.tm-language-def'; }; };
  63. patterns = ( { include = '#any'; } );
  64. },
  65. { name = 'keyword.operator.dictionary.tm-language-def';
  66. match = ';';
  67. },
  68. { include = '#catch-all'; },
  69. );
  70. };
Add Comment
Please, Sign In to add comment