yaml.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "case_insensitive": true,
  3. "aliases": [
  4. "yml",
  5. "YAML",
  6. "yaml"
  7. ],
  8. "contains": [
  9. {
  10. "className": "attr",
  11. "variants": [
  12. {
  13. "begin": "\\w[\\w :\\\/.-]*:(?=[ \t]|$)"
  14. },
  15. {
  16. "begin": "\"\\w[\\w :\\\/.-]*\":(?=[ \t]|$)"
  17. },
  18. {
  19. "begin": "'\\w[\\w :\\\/.-]*':(?=[ \t]|$)"
  20. }
  21. ]
  22. },
  23. {
  24. "className": "meta",
  25. "begin": "^---s*$",
  26. "relevance": 10
  27. },
  28. {
  29. "className": "string",
  30. "begin": "[\\|>]([0-9]?[+-])?[ ]*\\n( *)[\\S ]+\\n(\\2[\\S ]+\\n?)*"
  31. },
  32. {
  33. "begin": "<%[%=-]?",
  34. "end": "[%-]?%>",
  35. "subLanguage": "ruby",
  36. "excludeBegin": true,
  37. "excludeEnd": true,
  38. "relevance": 0
  39. },
  40. {
  41. "className": "type",
  42. "begin": "![a-zA-Z_]\\w*"
  43. },
  44. {
  45. "className": "type",
  46. "begin": "!![a-zA-Z_]\\w*"
  47. },
  48. {
  49. "className": "meta",
  50. "begin": "&[a-zA-Z_]\\w*$"
  51. },
  52. {
  53. "className": "meta",
  54. "begin": "\\*[a-zA-Z_]\\w*$"
  55. },
  56. {
  57. "className": "bullet",
  58. "begin": "\\-(?=[ ]|$)",
  59. "relevance": 0
  60. },
  61. {
  62. "className": "comment",
  63. "begin": "#",
  64. "end": "$",
  65. "contains": [
  66. {
  67. "begin": "\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"
  68. },
  69. {
  70. "className": "doctag",
  71. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  72. "relevance": 0
  73. }
  74. ]
  75. },
  76. {
  77. "beginKeywords": "true false yes no null",
  78. "keywords": {
  79. "literal": "true false yes no null"
  80. }
  81. },
  82. {
  83. "className": "number",
  84. "begin": "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)\\b"
  85. },
  86. {
  87. "className": "string",
  88. "relevance": 0,
  89. "variants": [
  90. {
  91. "begin": "'",
  92. "end": "'"
  93. },
  94. {
  95. "begin": "\"",
  96. "end": "\""
  97. },
  98. {
  99. "begin": "\\S+"
  100. }
  101. ],
  102. "contains": [
  103. {
  104. "begin": "\\\\[\\s\\S]",
  105. "relevance": 0
  106. },
  107. {
  108. "className": "template-variable",
  109. "variants": [
  110. {
  111. "begin": "{{",
  112. "end": "}}"
  113. },
  114. {
  115. "begin": "%{",
  116. "end": "}"
  117. }
  118. ]
  119. }
  120. ]
  121. }
  122. ]
  123. }