ts.syntax 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. #
  2. # TypeScript syntax highlighting
  3. # for MC Editor/CoolEdit
  4. #
  5. # Authors:
  6. # * Oleksandr Sidko <mortiy@gmail.com>
  7. # * Timur Shemsedinov <timur.shemsedinov@gmail.com>
  8. # Based on js.syntax
  9. #
  10. context default
  11. #=========================
  12. # Keywords
  13. keyword whole abstract yellow
  14. keyword whole arguments yellow
  15. keyword whole as yellow
  16. keyword whole async yellow
  17. keyword whole await yellow
  18. keyword whole break yellow
  19. keyword whole caller yellow
  20. keyword whole case yellow
  21. keyword whole catch yellow
  22. keyword whole class yellow
  23. keyword whole constructor yellow
  24. keyword whole const yellow
  25. keyword whole continue yellow
  26. keyword whole debugger yellow
  27. keyword whole declare yellow
  28. keyword whole default yellow
  29. keyword whole delete yellow
  30. keyword whole do yellow
  31. keyword whole else yellow
  32. keyword whole enum yellow
  33. keyword whole export yellow
  34. keyword whole extends yellow
  35. keyword whole finally yellow
  36. keyword whole for yellow
  37. keyword whole from yellow
  38. keyword whole function yellow
  39. keyword whole get yellow
  40. keyword whole if yellow
  41. keyword whole implements yellow
  42. keyword whole import yellow
  43. keyword whole instanceof yellow
  44. keyword whole interface yellow
  45. keyword whole in yellow
  46. keyword whole let yellow
  47. keyword whole module yellow
  48. keyword whole namespace yellow
  49. keyword whole new yellow
  50. keyword whole of yellow
  51. keyword whole private yellow
  52. keyword whole protected yellow
  53. keyword whole prototype yellow
  54. keyword whole public yellow
  55. keyword whole readonly yellow
  56. keyword whole return yellow
  57. keyword whole set yellow
  58. keyword whole static yellow
  59. keyword whole super yellow
  60. keyword whole switch yellow
  61. keyword whole this yellow
  62. keyword whole throw yellow
  63. keyword whole try yellow
  64. keyword whole typeof yellow
  65. keyword whole var yellow
  66. keyword whole while yellow
  67. keyword whole with yellow
  68. keyword whole yield yellow
  69. #=========================
  70. # Basic Types
  71. keyword whole any cyan
  72. keyword whole bigint cyan
  73. keyword whole boolean cyan
  74. keyword whole never cyan
  75. keyword whole null cyan
  76. keyword whole number cyan
  77. keyword whole object cyan
  78. keyword whole string cyan
  79. keyword whole symbol cyan
  80. keyword whole undefined cyan
  81. keyword whole unknown cyan
  82. keyword whole void cyan
  83. keyword whole T cyan
  84. #=========================
  85. # Objects
  86. keyword whole AbortController yellow
  87. keyword whole AbortSignal yellow
  88. keyword whole AggregateError yellow
  89. keyword whole Array yellow
  90. keyword whole ArrayBuffer yellow
  91. keyword whole AsyncFunction yellow
  92. keyword whole AsyncGenerator yellow
  93. keyword whole AsyncGeneratorFunction yellow
  94. keyword whole Atomics yellow
  95. keyword whole BigInt64Array yellow
  96. keyword whole BigInt yellow
  97. keyword whole BigUint64Array yellow
  98. keyword whole Blob yellowOB
  99. keyword whole Boolean yellow
  100. keyword whole Buffer yellow
  101. keyword whole DataView yellow
  102. keyword whole Date yellow
  103. keyword whole DOMException yellow
  104. keyword whole Error yellow
  105. keyword whole EvalError yellow
  106. keyword whole Float32Array yellow
  107. keyword whole Float64Array yellow
  108. keyword whole Function yellow
  109. keyword whole Generator yellow
  110. keyword whole GeneratorFunction yellow
  111. keyword whole global yellow
  112. keyword whole globalThis yellow
  113. keyword whole Image yellow
  114. keyword whole Infinity yellow
  115. keyword whole Int16Array yellow
  116. keyword whole Int32Array yellow
  117. keyword whole Int8Array yellow
  118. keyword whole Intl yellow
  119. keyword whole JSON yellow
  120. keyword whole Map yellow
  121. keyword whole Math yellow
  122. keyword whole Number yellow
  123. keyword whole Object yellow
  124. keyword whole Promise yellow
  125. keyword whole Promise yellow
  126. keyword whole Proxy yellow
  127. keyword whole RangeError yellow
  128. keyword whole ReferenceError yellow
  129. keyword whole Reflect yellow
  130. keyword whole RegExp yellow
  131. keyword whole Set yellow
  132. keyword whole SharedArrayBuffer yellow
  133. keyword whole SyntaxError yellow
  134. keyword whole TextDecoder yellow
  135. keyword whole TypeError yellow
  136. keyword whole Uint16Array yellow
  137. keyword whole Uint32Array yellow
  138. keyword whole Uint8Array yellow
  139. keyword whole Uint8ClampedArray yellow
  140. keyword whole URIError yellow
  141. keyword whole URL yellow
  142. keyword whole URLSearchParams yellow
  143. keyword whole WeakMap yellow
  144. keyword whole WeakSet yellow
  145. keyword whole WebAssembly yellow
  146. keyword whole window yellow
  147. #=========================
  148. # Most common functions
  149. keyword whole alert yellow
  150. keyword whole clearInterval yellow
  151. keyword whole clearTimeout yellow
  152. keyword whole console yellow
  153. keyword whole decodeURIComponent yellow
  154. keyword whole decodeURI yellow
  155. keyword whole encodeURIComponent yellow
  156. keyword whole escape yellow
  157. keyword whole eval yellow
  158. keyword whole fetch yellow
  159. keyword whole isFinite yellow
  160. keyword whole isNaN yellow
  161. keyword whole module yellow
  162. keyword whole parseFloat yellow
  163. keyword whole parseInt yellow
  164. keyword whole performance yellow
  165. keyword whole process yellow
  166. keyword whole queueMicrotask yellow
  167. keyword whole require yellow
  168. keyword whole setImmediate yellow
  169. keyword whole setInterval yellow
  170. keyword whole setTimeout yellow
  171. keyword whole structuredClone yellow
  172. keyword whole unescape yellow
  173. #=========================
  174. # Constants
  175. keyword whole true brightgreen
  176. keyword whole false brightgreen
  177. keyword whole NaN yellow
  178. keyword whole __dirname yellow
  179. keyword whole __filename yellow
  180. #=========================
  181. # Comments
  182. keyword /\* brown
  183. keyword \*/ brown
  184. keyword // brown
  185. #=========================
  186. # Numbers
  187. wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.
  188. keyword whole 0\{xX\}\{0123456789abcdefABCDEF\}\[0123456789abcdefABCDEF\] brightgreen
  189. keyword whole \{0123456789\}\[0123456789\] brightgreen
  190. keyword whole \[0123456789\]\.\{0123456789\}\[0123456789\] brightgreen
  191. keyword whole \{0123456789\}\[0123456789\]\.\[0123456789\] brightgreen
  192. keyword whole \{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen
  193. keyword whole \{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen
  194. keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen
  195. keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen
  196. #=========================
  197. # Special symbols
  198. keyword <+> cyan
  199. keyword => brightcyan
  200. keyword \. yellow
  201. keyword \* yellow
  202. keyword \+ yellow
  203. keyword - yellow
  204. keyword / yellow
  205. keyword % yellow
  206. keyword = yellow
  207. keyword ! yellow
  208. keyword & yellow
  209. keyword | yellow
  210. keyword ^ yellow
  211. keyword ~ yellow
  212. keyword > yellow
  213. keyword < yellow
  214. keyword wholeright @+ cyan
  215. #=========================
  216. # Separators
  217. keyword { brightcyan
  218. keyword } brightcyan
  219. keyword ( brightcyan
  220. keyword ) brightcyan
  221. keyword [ brightcyan
  222. keyword ] brightcyan
  223. keyword , brightcyan
  224. keyword ? brightcyan
  225. keyword : brightcyan
  226. keyword ; brightmagenta
  227. # Function return type
  228. context exclusive wholeright ): \n cyan
  229. keyword ; brightmagenta
  230. keyword { brightcyan
  231. #=============================
  232. # Comments
  233. context exclusive /\* \*/ brown
  234. spellcheck
  235. keyword whole BUG brightred
  236. keyword whole FixMe brightred
  237. keyword whole FIXME brightred
  238. keyword whole Note brightred
  239. keyword whole NOTE brightred
  240. keyword whole ToDo brightred
  241. keyword whole TODO brightred
  242. keyword !!\[!\] brightred
  243. keyword ??\[?\] brightred
  244. context exclusive // \n brown
  245. spellcheck
  246. keyword whole BUG brightred
  247. keyword whole FixMe brightred
  248. keyword whole FIXME brightred
  249. keyword whole Note brightred
  250. keyword whole NOTE brightred
  251. keyword whole ToDo brightred
  252. keyword whole TODO brightred
  253. keyword !!\[!\] brightred
  254. keyword ??\[?\] brightred
  255. #=============================
  256. # Strings
  257. context " " green
  258. spellcheck
  259. keyword \\\{\\'"abtnvfr\} brightgreen
  260. keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
  261. keyword ' brightgreen
  262. context ' ' green
  263. spellcheck
  264. keyword \\\{\\'"abtnvfr\} brightgreen
  265. keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
  266. keyword " brightgreen
  267. context ` ` green
  268. spellcheck
  269. keyword \\\{\\'"abtnvfr\} brightgreen
  270. keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
  271. keyword ${*} yellow