as.syntax 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. #
  2. # ActionScript syntax highlighting
  3. # for MC Editor/CoolEdit
  4. #
  5. # Author: Oleg Kosenkov <oleg@kosenkov.ca>
  6. # Based on js.syntax
  7. #
  8. # 2011-12-27 Oleg Kosenkov <oleg@kosenkov.ca>
  9. # * Initial public release.
  10. #
  11. context default
  12. #=========================
  13. # Keywords
  14. keyword whole arguments yellow
  15. keyword whole break yellow
  16. keyword whole caller yellow
  17. keyword whole case yellow
  18. keyword whole catch yellow
  19. keyword whole constructor yellow
  20. keyword whole continue yellow
  21. keyword whole else yellow
  22. keyword whole default yellow
  23. keyword whole delete yellow
  24. keyword whole for yellow
  25. keyword whole function yellow
  26. keyword whole private yellow
  27. keyword whole public yellow
  28. keyword whole internal yellow
  29. keyword whole protected yellow
  30. keyword whole native yellow
  31. keyword whole static yellow
  32. keyword whole if yellow
  33. keyword whole in yellow
  34. keyword whole instanceof yellow
  35. keyword whole new yellow
  36. keyword whole prototype yellow
  37. keyword whole override yellow
  38. keyword whole return yellow
  39. keyword whole switch yellow
  40. keyword whole this yellow
  41. keyword whole throw yellow
  42. keyword whole try yellow
  43. keyword whole typeof yellow
  44. keyword whole var yellow
  45. keyword whole while yellow
  46. keyword whole with yellow
  47. keyword whole import yellow
  48. keyword whole package yellow
  49. keyword whole class yellow
  50. keyword whole final yellow
  51. keyword whole const yellow
  52. keyword whole set yellow
  53. keyword whole get yellow
  54. keyword whole dynamic yellow
  55. keyword whole label yellow
  56. keyword whole super yellow
  57. keyword whole extends yellow
  58. keyword whole include yellow
  59. keyword whole namespace yellow
  60. keyword whole interface yellow
  61. keyword whole this yellow
  62. #=========================
  63. # Objects
  64. keyword whole ActiveXObject yellow
  65. keyword whole Array yellow
  66. keyword whole Boolean yellow
  67. keyword whole Date yellow
  68. keyword whole Dictionary yellow
  69. keyword whole Enumerator yellow
  70. keyword whole FileSystemObject yellow
  71. keyword whole Function yellow
  72. keyword whole Global yellow
  73. keyword whole Image yellow
  74. keyword whole Math yellow
  75. keyword whole Number yellow
  76. keyword whole Object yellow
  77. keyword whole TextStream yellow
  78. keyword whole RegExp yellow
  79. keyword whole VBArray yellow
  80. keyword whole String yellow
  81. keyword whole void yellow
  82. keyword whole int yellow
  83. #=========================
  84. # Most common functions
  85. keyword whole alert yellow
  86. keyword whole escape yellow
  87. keyword whole eval yellow
  88. keyword whole indexOf yellow
  89. keyword whole isNaN yellow
  90. keyword whole toString yellow
  91. keyword whole unescape yellow
  92. keyword whole valueOf yellow
  93. #=========================
  94. # Constants
  95. keyword whole false brightgreen
  96. keyword whole null brightgreen
  97. keyword whole true brightgreen
  98. keyword whole undefined yellow
  99. #=========================
  100. # Comments
  101. keyword /\* brown
  102. keyword \*/ brown
  103. keyword // brown
  104. #=========================
  105. # Numbers
  106. wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.
  107. keyword whole 0\{xX\}\{0123456789abcdefABCDEF\}\[0123456789abcdefABCDEF\] brightgreen
  108. keyword whole \{0123456789\}\[0123456789\] brightgreen
  109. keyword whole \[0123456789\]\.\{0123456789\}\[0123456789\] brightgreen
  110. keyword whole \{0123456789\}\[0123456789\]\.\[0123456789\] brightgreen
  111. keyword whole \{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen
  112. keyword whole \{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen
  113. keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen
  114. keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen
  115. #=========================
  116. # Special symbols
  117. keyword \. yellow
  118. keyword \* yellow
  119. keyword \+ yellow
  120. keyword - yellow
  121. keyword / yellow
  122. keyword % yellow
  123. keyword = yellow
  124. keyword ! yellow
  125. keyword & yellow
  126. keyword | yellow
  127. keyword ^ yellow
  128. keyword ~ yellow
  129. keyword > yellow
  130. keyword < yellow
  131. #=========================
  132. # Separators
  133. keyword { brightcyan
  134. keyword } brightcyan
  135. keyword ( brightcyan
  136. keyword ) brightcyan
  137. keyword [ brightcyan
  138. keyword ] brightcyan
  139. keyword , brightcyan
  140. keyword ? brightcyan
  141. keyword : brightcyan
  142. keyword ; brightmagenta
  143. #=============================
  144. # Comments
  145. context exclusive /\* \*/ brown
  146. spellcheck
  147. keyword whole BUG brightred
  148. keyword whole FixMe brightred
  149. keyword whole FIXME brightred
  150. keyword whole Note brightred
  151. keyword whole NOTE brightred
  152. keyword whole ToDo brightred
  153. keyword whole TODO brightred
  154. keyword !!\[!\] brightred
  155. keyword ??\[?\] brightred
  156. context exclusive // \n brown
  157. spellcheck
  158. keyword whole BUG brightred
  159. keyword whole FixMe brightred
  160. keyword whole FIXME brightred
  161. keyword whole Note brightred
  162. keyword whole NOTE brightred
  163. keyword whole ToDo brightred
  164. keyword whole TODO brightred
  165. keyword !!\[!\] brightred
  166. keyword ??\[?\] brightred
  167. #=============================
  168. # Strings
  169. context " " green
  170. spellcheck
  171. keyword \\\{\\'"abtnvfr\} brightgreen
  172. keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
  173. keyword ' brightgreen
  174. context ' ' green
  175. spellcheck
  176. keyword \\\{\\'"abtnvfr\} brightgreen
  177. keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
  178. keyword " brightgreen