| 1 | # |
| 2 | # TypeScript syntax highlighting |
| 3 | # for MC Editor/CoolEdit |
| 4 | # |
| 5 | # Author: Oleksandr Sidko <mortiy@gmail.com> |
| 6 | # Based on js.syntax |
| 7 | # |
| 8 | |
| 9 | context default |
| 10 | |
| 11 | |
| 12 | #========================= |
| 13 | # Keywords |
| 14 | keyword whole abstract yellow |
| 15 | keyword whole arguments yellow |
| 16 | keyword whole as yellow |
| 17 | keyword whole break yellow |
| 18 | keyword whole caller yellow |
| 19 | keyword whole case yellow |
| 20 | keyword whole catch yellow |
| 21 | keyword whole class yellow |
| 22 | keyword whole const yellow |
| 23 | keyword whole constructor yellow |
| 24 | keyword whole continue yellow |
| 25 | keyword whole declare yellow |
| 26 | keyword whole else yellow |
| 27 | keyword whole enum yellow |
| 28 | keyword whole extends yellow |
| 29 | keyword whole export yellow |
| 30 | keyword whole default yellow |
| 31 | keyword whole delete yellow |
| 32 | keyword whole for yellow |
| 33 | keyword whole from yellow |
| 34 | keyword whole function yellow |
| 35 | keyword whole get yellow |
| 36 | keyword whole if yellow |
| 37 | keyword whole import yellow |
| 38 | keyword whole implements yellow |
| 39 | keyword whole in yellow |
| 40 | keyword whole instanceof yellow |
| 41 | keyword whole interface yellow |
| 42 | keyword whole let yellow |
| 43 | keyword whole module yellow |
| 44 | keyword whole namespace yellow |
| 45 | keyword whole new yellow |
| 46 | keyword whole of yellow |
| 47 | keyword whole private yellow |
| 48 | keyword whole protected yellow |
| 49 | keyword whole prototype yellow |
| 50 | keyword whole public yellow |
| 51 | keyword whole readonly yellow |
| 52 | keyword whole return yellow |
| 53 | keyword whole set yellow |
| 54 | keyword whole static yellow |
| 55 | keyword whole switch yellow |
| 56 | keyword whole this yellow |
| 57 | keyword whole throw yellow |
| 58 | keyword whole try yellow |
| 59 | keyword whole typeof yellow |
| 60 | keyword whole var yellow |
| 61 | keyword whole while yellow |
| 62 | keyword whole with yellow |
| 63 | keyword whole yield yellow |
| 64 | |
| 65 | #========================= |
| 66 | # Basic Types |
| 67 | keyword whole string cyan |
| 68 | keyword whole number cyan |
| 69 | keyword whole boolean cyan |
| 70 | keyword whole any cyan |
| 71 | keyword whole void cyan |
| 72 | keyword whole T cyan |
| 73 | |
| 74 | #========================= |
| 75 | # Objects |
| 76 | keyword whole ActiveXObject yellow |
| 77 | keyword whole Array yellow |
| 78 | keyword whole Boolean yellow |
| 79 | keyword whole Date yellow |
| 80 | keyword whole Dictionary yellow |
| 81 | keyword whole Enumerator yellow |
| 82 | keyword whole FileSystemObject yellow |
| 83 | keyword whole Function yellow |
| 84 | keyword whole Global yellow |
| 85 | keyword whole Image yellow |
| 86 | keyword whole Math yellow |
| 87 | keyword whole Map yellow |
| 88 | keyword whole Number yellow |
| 89 | keyword whole Object yellow |
| 90 | keyword whole Promise yellow |
| 91 | keyword whole Proxy yellow |
| 92 | keyword whole Reflect yellow |
| 93 | keyword whole Set yellow |
| 94 | keyword whole String yellow |
| 95 | keyword whole Symbol yellow |
| 96 | keyword whole TextStream yellow |
| 97 | keyword whole RegExp yellow |
| 98 | keyword whole VBArray yellow |
| 99 | keyword whole WeakMap yellow |
| 100 | keyword whole WeakSet yellow |
| 101 | |
| 102 | #========================= |
| 103 | # Most common functions |
| 104 | keyword whole alert yellow |
| 105 | keyword whole escape yellow |
| 106 | keyword whole eval yellow |
| 107 | keyword whole indexOf yellow |
| 108 | keyword whole isNaN yellow |
| 109 | keyword whole toString yellow |
| 110 | keyword whole unescape yellow |
| 111 | keyword whole valueOf yellow |
| 112 | |
| 113 | #========================= |
| 114 | # Constants |
| 115 | keyword whole false brightgreen |
| 116 | keyword whole null brightgreen |
| 117 | keyword whole true brightgreen |
| 118 | keyword whole undefined yellow |
| 119 | |
| 120 | #========================= |
| 121 | # Comments |
| 122 | keyword /\* brown |
| 123 | keyword \*/ brown |
| 124 | keyword // brown |
| 125 | |
| 126 | #========================= |
| 127 | # Numbers |
| 128 | wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_. |
| 129 | |
| 130 | keyword whole 0\{xX\}\{0123456789abcdefABCDEF\}\[0123456789abcdefABCDEF\] brightgreen |
| 131 | keyword whole \{0123456789\}\[0123456789\] brightgreen |
| 132 | keyword whole \[0123456789\]\.\{0123456789\}\[0123456789\] brightgreen |
| 133 | keyword whole \{0123456789\}\[0123456789\]\.\[0123456789\] brightgreen |
| 134 | keyword whole \{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen |
| 135 | keyword whole \{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen |
| 136 | keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen |
| 137 | keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen |
| 138 | |
| 139 | #========================= |
| 140 | # Special symbols |
| 141 | keyword <+> cyan |
| 142 | keyword => brightcyan |
| 143 | keyword \. yellow |
| 144 | keyword \* yellow |
| 145 | keyword \+ yellow |
| 146 | keyword - yellow |
| 147 | keyword / yellow |
| 148 | keyword % yellow |
| 149 | keyword = yellow |
| 150 | keyword ! yellow |
| 151 | keyword & yellow |
| 152 | keyword | yellow |
| 153 | keyword ^ yellow |
| 154 | keyword ~ yellow |
| 155 | keyword > yellow |
| 156 | keyword < yellow |
| 157 | keyword wholeright @+ cyan |
| 158 | |
| 159 | #========================= |
| 160 | # Separators |
| 161 | keyword { brightcyan |
| 162 | keyword } brightcyan |
| 163 | keyword ( brightcyan |
| 164 | keyword ) brightcyan |
| 165 | keyword [ brightcyan |
| 166 | keyword ] brightcyan |
| 167 | keyword , brightcyan |
| 168 | keyword ? brightcyan |
| 169 | keyword : brightcyan |
| 170 | keyword ; brightmagenta |
| 171 | |
| 172 | # Function return type |
| 173 | context exclusive wholeright ): \n cyan |
| 174 | keyword ; brightmagenta |
| 175 | keyword { brightcyan |
| 176 | |
| 177 | #============================= |
| 178 | # Comments |
| 179 | |
| 180 | context exclusive /\* \*/ brown |
| 181 | spellcheck |
| 182 | keyword whole BUG brightred |
| 183 | keyword whole FixMe brightred |
| 184 | keyword whole FIXME brightred |
| 185 | keyword whole Note brightred |
| 186 | keyword whole NOTE brightred |
| 187 | keyword whole ToDo brightred |
| 188 | keyword whole TODO brightred |
| 189 | keyword !!\[!\] brightred |
| 190 | keyword ??\[?\] brightred |
| 191 | |
| 192 | |
| 193 | context exclusive // \n brown |
| 194 | spellcheck |
| 195 | keyword whole BUG brightred |
| 196 | keyword whole FixMe brightred |
| 197 | keyword whole FIXME brightred |
| 198 | keyword whole Note brightred |
| 199 | keyword whole NOTE brightred |
| 200 | keyword whole ToDo brightred |
| 201 | keyword whole TODO brightred |
| 202 | keyword !!\[!\] brightred |
| 203 | keyword ??\[?\] brightred |
| 204 | |
| 205 | |
| 206 | #============================= |
| 207 | # Strings |
| 208 | |
| 209 | context " " green |
| 210 | spellcheck |
| 211 | keyword \\\{\\'"abtnvfr\} brightgreen |
| 212 | keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen |
| 213 | |
| 214 | keyword ' brightgreen |
| 215 | |
| 216 | context ' ' green |
| 217 | spellcheck |
| 218 | keyword \\\{\\'"abtnvfr\} brightgreen |
| 219 | keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen |
| 220 | |
| 221 | keyword " brightgreen |
| 222 | |
| 223 | context ` ` green |
| 224 | spellcheck |
| 225 | keyword \\\{\\'"abtnvfr\} brightgreen |
| 226 | keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen |
| 227 | keyword ${*} yellow |
| 228 | |
| 229 | |