haxe.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. {
  2. "aliases": [
  3. "hx"
  4. ],
  5. "keywords": {
  6. "keyword": "break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array ",
  7. "built_in": "trace this",
  8. "literal": "true false null _"
  9. },
  10. "contains": [
  11. {
  12. "className": "string",
  13. "begin": "'",
  14. "end": "'",
  15. "contains": [
  16. {
  17. "begin": "\\\\[\\s\\S]",
  18. "relevance": 0
  19. },
  20. {
  21. "className": "subst",
  22. "begin": "\\$\\{",
  23. "end": "\\}"
  24. },
  25. {
  26. "className": "subst",
  27. "begin": "\\$",
  28. "end": "\\W}"
  29. }
  30. ]
  31. },
  32. {
  33. "className": "string",
  34. "begin": "\"",
  35. "end": "\"",
  36. "illegal": "\\n",
  37. "contains": [
  38. {
  39. "$ref": "#contains.0.contains.0"
  40. }
  41. ]
  42. },
  43. {
  44. "className": "comment",
  45. "begin": "\/\/",
  46. "end": "$",
  47. "contains": [
  48. {
  49. "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"
  50. },
  51. {
  52. "className": "doctag",
  53. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  54. "relevance": 0
  55. }
  56. ]
  57. },
  58. {
  59. "className": "comment",
  60. "begin": "\/\\*",
  61. "end": "\\*\/",
  62. "contains": [
  63. {
  64. "$ref": "#contains.2.contains.0"
  65. },
  66. {
  67. "className": "doctag",
  68. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  69. "relevance": 0
  70. }
  71. ]
  72. },
  73. {
  74. "className": "number",
  75. "begin": "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",
  76. "relevance": 0
  77. },
  78. {
  79. "className": "meta",
  80. "begin": "@:",
  81. "end": "$"
  82. },
  83. {
  84. "className": "meta",
  85. "begin": "#",
  86. "end": "$",
  87. "keywords": {
  88. "meta-keyword": "if else elseif end error"
  89. }
  90. },
  91. {
  92. "className": "type",
  93. "begin": ":[ \t]*",
  94. "end": "[^A-Za-z0-9_ \t\\->]",
  95. "excludeBegin": true,
  96. "excludeEnd": true,
  97. "relevance": 0
  98. },
  99. {
  100. "className": "type",
  101. "begin": ":[ \t]*",
  102. "end": "\\W",
  103. "excludeBegin": true,
  104. "excludeEnd": true
  105. },
  106. {
  107. "className": "type",
  108. "begin": "new *",
  109. "end": "\\W",
  110. "excludeBegin": true,
  111. "excludeEnd": true
  112. },
  113. {
  114. "className": "class",
  115. "beginKeywords": "enum",
  116. "end": "\\{",
  117. "contains": [
  118. {
  119. "className": "title",
  120. "begin": "[a-zA-Z]\\w*",
  121. "relevance": 0
  122. }
  123. ]
  124. },
  125. {
  126. "className": "class",
  127. "beginKeywords": "abstract",
  128. "end": "[\\{$]",
  129. "contains": [
  130. {
  131. "className": "type",
  132. "begin": "\\(",
  133. "end": "\\)",
  134. "excludeBegin": true,
  135. "excludeEnd": true
  136. },
  137. {
  138. "className": "type",
  139. "begin": "from +",
  140. "end": "\\W",
  141. "excludeBegin": true,
  142. "excludeEnd": true
  143. },
  144. {
  145. "className": "type",
  146. "begin": "to +",
  147. "end": "\\W",
  148. "excludeBegin": true,
  149. "excludeEnd": true
  150. },
  151. {
  152. "$ref": "#contains.10.contains.0"
  153. }
  154. ],
  155. "keywords": {
  156. "keyword": "abstract from to"
  157. }
  158. },
  159. {
  160. "className": "class",
  161. "begin": "\\b(class|interface) +",
  162. "end": "[\\{$]",
  163. "excludeEnd": true,
  164. "keywords": "class interface",
  165. "contains": [
  166. {
  167. "className": "keyword",
  168. "begin": "\\b(extends|implements) +",
  169. "keywords": "extends implements",
  170. "contains": [
  171. {
  172. "className": "type",
  173. "begin": "[a-zA-Z]\\w*",
  174. "relevance": 0
  175. }
  176. ]
  177. },
  178. {
  179. "$ref": "#contains.10.contains.0"
  180. }
  181. ]
  182. },
  183. {
  184. "className": "function",
  185. "beginKeywords": "function",
  186. "end": "\\(",
  187. "excludeEnd": true,
  188. "illegal": "\\S",
  189. "contains": [
  190. {
  191. "$ref": "#contains.10.contains.0"
  192. }
  193. ]
  194. }
  195. ],
  196. "illegal": "<\\\/"
  197. }