| 1 | { |
| 2 | "comment": "CoffeeScript", |
| 3 | "fileTypes": [ |
| 4 | "coffee", |
| 5 | "Cakefile", |
| 6 | "coffee.erb", |
| 7 | "cake", |
| 8 | "cjsx", |
| 9 | "cson", |
| 10 | "iced" |
| 11 | ], |
| 12 | "injections": { |
| 13 | "string.regexp.block.coffee": { |
| 14 | "patterns": [ |
| 15 | { |
| 16 | "include": "#interpolated_coffee" |
| 17 | }, |
| 18 | { |
| 19 | "include": "#embedded_comment" |
| 20 | } |
| 21 | ] |
| 22 | } |
| 23 | }, |
| 24 | "keyEquivalent": "^~C", |
| 25 | "name": "CoffeeScript", |
| 26 | "patterns": [ |
| 27 | { |
| 28 | "captures": { |
| 29 | "1": { |
| 30 | "name": "punctuation.definition.parameters.begin.coffee" |
| 31 | }, |
| 32 | "2": { |
| 33 | "patterns": [ |
| 34 | { |
| 35 | "captures": { |
| 36 | "1": { |
| 37 | "name": "variable.parameter.function.coffee" |
| 38 | }, |
| 39 | "2": { |
| 40 | "name": "punctuation.separator.key-value.coffee" |
| 41 | }, |
| 42 | "3": { |
| 43 | "name": "string.quoted.double.coffee" |
| 44 | }, |
| 45 | "4": { |
| 46 | "name": "punctuation.definition.string.begin.coffee" |
| 47 | }, |
| 48 | "5": { |
| 49 | "name": "punctuation.definition.string.end.coffee" |
| 50 | }, |
| 51 | "6": { |
| 52 | "name": "string.quoted.single.coffee" |
| 53 | }, |
| 54 | "7": { |
| 55 | "name": "punctuation.definition.string.begin.coffee" |
| 56 | }, |
| 57 | "8": { |
| 58 | "name": "punctuation.definition.string.end.coffee" |
| 59 | } |
| 60 | }, |
| 61 | "match": "(?x)\n\t\t\t\t\t\t\t\t([^()\\s,]+)\n\t\t\t\t\t\t\t\t\\s+(=)\\s+\n\t\t\t\t\t\t\t\t(?:\n\t\t\t\t\t\t\t\t\t((\")[^\"]*(\"))\n\t\t\t\t\t\t\t\t | ((')[^']*('))\n\t\t\t\t\t\t\t\t)" |
| 62 | }, |
| 63 | { |
| 64 | "match": "[^()\\s,]+", |
| 65 | "name": "variable.parameter.function.coffee" |
| 66 | }, |
| 67 | { |
| 68 | "match": ",", |
| 69 | "name": "punctuation.separator.arguments.coffee" |
| 70 | } |
| 71 | ] |
| 72 | }, |
| 73 | "3": { |
| 74 | "name": "punctuation.definition.parameters.begin.coffee" |
| 75 | }, |
| 76 | "4": { |
| 77 | "name": "storage.type.function.coffee" |
| 78 | } |
| 79 | }, |
| 80 | "comment": "match stuff like: a -> … ", |
| 81 | "match": "(\\()([^()]*?)(\\))\\s*([=-]>)", |
| 82 | "name": "meta.inline.function.coffee" |
| 83 | }, |
| 84 | { |
| 85 | "captures": { |
| 86 | "1": { |
| 87 | "name": "keyword.operator.new.coffee" |
| 88 | }, |
| 89 | "4": { |
| 90 | "name": "storage.type.class.coffee" |
| 91 | }, |
| 92 | "6": { |
| 93 | "name": "entity.name.type.instance.coffee" |
| 94 | }, |
| 95 | "7": { |
| 96 | "name": "entity.name.type.instance.coffee" |
| 97 | } |
| 98 | }, |
| 99 | "match": "(new)\\s+(((class)(\\s+(\\w+(?:\\.\\w*)*))?)|(\\w+(?:\\.\\w*)*))", |
| 100 | "name": "meta.class.instance.constructor" |
| 101 | }, |
| 102 | { |
| 103 | "begin": "'''", |
| 104 | "beginCaptures": { |
| 105 | "0": { |
| 106 | "name": "punctuation.definition.string.begin.coffee" |
| 107 | } |
| 108 | }, |
| 109 | "end": "'''", |
| 110 | "endCaptures": { |
| 111 | "0": { |
| 112 | "name": "punctuation.definition.string.end.coffee" |
| 113 | } |
| 114 | }, |
| 115 | "name": "string.unquoted.heredoc.coffee" |
| 116 | }, |
| 117 | { |
| 118 | "begin": "\"\"\"", |
| 119 | "beginCaptures": { |
| 120 | "0": { |
| 121 | "name": "punctuation.definition.string.begin.coffee" |
| 122 | } |
| 123 | }, |
| 124 | "end": "\"\"\"", |
| 125 | "endCaptures": { |
| 126 | "0": { |
| 127 | "name": "punctuation.definition.string.end.coffee" |
| 128 | } |
| 129 | }, |
| 130 | "name": "string.quoted.double.heredoc.coffee", |
| 131 | "patterns": [ |
| 132 | { |
| 133 | "match": "\\\\.", |
| 134 | "name": "constant.character.escape.coffee" |
| 135 | }, |
| 136 | { |
| 137 | "include": "#interpolated_coffee" |
| 138 | } |
| 139 | ] |
| 140 | }, |
| 141 | { |
| 142 | "begin": "(?=`)", |
| 143 | "end": "(?<=`)", |
| 144 | "name": "meta.embedded.line.coffee", |
| 145 | "patterns": [ |
| 146 | { |
| 147 | "begin": "`", |
| 148 | "beginCaptures": { |
| 149 | "0": { |
| 150 | "name": "punctuation.definition.string.begin.coffee" |
| 151 | } |
| 152 | }, |
| 153 | "contentName": "source.js", |
| 154 | "end": "(`)", |
| 155 | "endCaptures": { |
| 156 | "0": { |
| 157 | "name": "punctuation.definition.string.end.coffee" |
| 158 | }, |
| 159 | "1": { |
| 160 | "name": "source.js" |
| 161 | } |
| 162 | }, |
| 163 | "name": "string.other.embedded.javascript.coffee", |
| 164 | "patterns": [ |
| 165 | { |
| 166 | "include": "source.js" |
| 167 | } |
| 168 | ] |
| 169 | } |
| 170 | ] |
| 171 | }, |
| 172 | { |
| 173 | "begin": "(?<!#)###(?!#)", |
| 174 | "captures": { |
| 175 | "0": { |
| 176 | "name": "punctuation.definition.comment.coffee" |
| 177 | } |
| 178 | }, |
| 179 | "end": "###(?:[ \\t]*\\n)", |
| 180 | "name": "comment.block.coffee", |
| 181 | "patterns": [ |
| 182 | { |
| 183 | "match": "(?<=^|\\s)@\\w*(?=\\s)", |
| 184 | "name": "storage.type.annotation.coffeescript" |
| 185 | } |
| 186 | ] |
| 187 | }, |
| 188 | { |
| 189 | "begin": "(^[ \\t]+)?(?=#)", |
| 190 | "beginCaptures": { |
| 191 | "1": { |
| 192 | "name": "punctuation.whitespace.comment.leading.coffee" |
| 193 | } |
| 194 | }, |
| 195 | "end": "(?!\\G)", |
| 196 | "patterns": [ |
| 197 | { |
| 198 | "begin": "#", |
| 199 | "beginCaptures": { |
| 200 | "0": { |
| 201 | "name": "punctuation.definition.comment.coffee" |
| 202 | } |
| 203 | }, |
| 204 | "end": "\\n", |
| 205 | "name": "comment.line.number-sign.coffee" |
| 206 | } |
| 207 | ] |
| 208 | }, |
| 209 | { |
| 210 | "begin": "/{3}", |
| 211 | "beginCaptures": { |
| 212 | "0": { |
| 213 | "name": "punctuation.definition.string.begin.coffee" |
| 214 | } |
| 215 | }, |
| 216 | "end": "(/{3})[imgy]{0,4}", |
| 217 | "endCaptures": { |
| 218 | "1": { |
| 219 | "name": "punctuation.definition.string.end.coffee" |
| 220 | } |
| 221 | }, |
| 222 | "name": "string.regexp.block.coffee", |
| 223 | "patterns": [ |
| 224 | { |
| 225 | "include": "source.js.regexp" |
| 226 | } |
| 227 | ] |
| 228 | }, |
| 229 | { |
| 230 | "begin": "/(?![\\s=/*+{}?])", |
| 231 | "beginCaptures": { |
| 232 | "0": { |
| 233 | "name": "punctuation.definition.string.begin.coffee" |
| 234 | } |
| 235 | }, |
| 236 | "end": "(/)[igmy]{0,4}(?![a-zA-Z0-9])", |
| 237 | "endCaptures": { |
| 238 | "1": { |
| 239 | "name": "punctuation.definition.string.end.coffee" |
| 240 | } |
| 241 | }, |
| 242 | "name": "string.regexp.coffee", |
| 243 | "patterns": [ |
| 244 | { |
| 245 | "include": "source.js.regexp" |
| 246 | } |
| 247 | ] |
| 248 | }, |
| 249 | { |
| 250 | "match": "(?x)\n\t\t\t\t\\b\n\t\t\t\t(?<![\\.\\$])\n\t\t\t\t(\n\t\t\t\t\tbreak\n\t\t\t\t | by\n\t\t\t\t | catch\n\t\t\t\t | continue\n\t\t\t\t | else\n\t\t\t\t | finally\n\t\t\t\t | for\n\t\t\t\t | in\n\t\t\t\t | of\n\t\t\t\t | if\n\t\t\t\t | return\n\t\t\t\t | switch\n\t\t\t\t | then\n\t\t\t\t | throw\n\t\t\t\t | try\n\t\t\t\t | unless\n\t\t\t\t | when\n\t\t\t\t | while\n\t\t\t\t | until\n\t\t\t\t | loop\n\t\t\t\t | do\n\t\t\t\t | (?<=for)\\s+own\n\t\t\t\t)\n\t\t\t\t(?!\\s*:)\n\t\t\t\t\\b\n\t\t\t", |
| 251 | "name": "keyword.control.coffee" |
| 252 | }, |
| 253 | { |
| 254 | "match": "(?x)\n (and|or|<<|>>>?|(?<!\\()\\/|[=!<>*%+\\-&^])?=(?!>)\n | [!%^*\\/~?:]\n | \\-?\\-(?!>)\n | \\+\\+?\n | <>\n | <\n | >\n | &&?\n | \\.\\.\\.?\n | \\|\\|?\n | \\b(?<![\\.\\$])(instanceof|new|delete|typeof|and|or|is|isnt|not|super)(?!\\s*:)\\b\n\t\t\t", |
| 255 | "name": "keyword.operator.coffee" |
| 256 | }, |
| 257 | { |
| 258 | "match": "(?x)\n\t\t\t\t\\b\n\t\t\t\t(?<![\\.\\$])\n\t\t\t\t(\n\t\t\t\t\t case\n | default\n | function\n | var\n | void\n | with\n | const\n | let\n | enum\n | export\n | import\n | native\n | __hasProp\n | __extends\n | __slice\n | __bind\n | __indexOf\n | implements\n | interface\n | package\n | private\n | protected\n | public\n | static\n | yield\n )\n\t\t\t\t(?!\\s*:)\n\t\t\t\t\\b\n\t\t\t", |
| 259 | "name": "keyword.other.reserved.coffee" |
| 260 | }, |
| 261 | { |
| 262 | "captures": { |
| 263 | "1": { |
| 264 | "name": "variable.other.assignment.coffee" |
| 265 | }, |
| 266 | "4": { |
| 267 | "name": "punctuation.separator.key-value" |
| 268 | }, |
| 269 | "5": { |
| 270 | "name": "keyword.operator.coffee" |
| 271 | } |
| 272 | }, |
| 273 | "match": "(?x)\n\t\t\t\t(?:\n\t\t\t\t\t([a-zA-Z\\$_](\\w|\\$|\\.)*)\n\t\t\t\t\t\\s*\n\t\t\t\t\t(?!\\::)\n\t\t\t\t\t((:)|((?:or|and|[-+/&%*?])?=)(?![>=]))\n\t\t\t\t\t(?!\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\\s*\\(.*\\)\n\t\t\t\t\t\t)?\n\t\t\t\t\t\t\\s*\n\t\t\t\t\t\t([=-]>)\n\t\t\t\t\t)\n\t\t\t\t)" |
| 274 | }, |
| 275 | { |
| 276 | "begin": "(?<=\\s|^)(\\{)(?=.+?\\}\\s+[:=])", |
| 277 | "beginCaptures": { |
| 278 | "0": { |
| 279 | "name": "keyword.operator.coffee" |
| 280 | } |
| 281 | }, |
| 282 | "end": "(\\}\\s*[:=])", |
| 283 | "endCaptures": { |
| 284 | "0": { |
| 285 | "name": "keyword.operator.coffee" |
| 286 | } |
| 287 | }, |
| 288 | "name": "meta.variable.assignment.destructured.object.coffee", |
| 289 | "patterns": [ |
| 290 | { |
| 291 | "include": "#variable_name" |
| 292 | }, |
| 293 | { |
| 294 | "include": "#instance_variable" |
| 295 | }, |
| 296 | { |
| 297 | "include": "#single_quoted_string" |
| 298 | }, |
| 299 | { |
| 300 | "include": "#double_quoted_string" |
| 301 | }, |
| 302 | { |
| 303 | "include": "#numeric" |
| 304 | } |
| 305 | ] |
| 306 | }, |
| 307 | { |
| 308 | "begin": "(?<=\\s|^)(\\[)(?=.+?\\]\\s+[:=])", |
| 309 | "beginCaptures": { |
| 310 | "0": { |
| 311 | "name": "keyword.operator.coffee" |
| 312 | } |
| 313 | }, |
| 314 | "end": "(\\]\\s*[:=])", |
| 315 | "endCaptures": { |
| 316 | "0": { |
| 317 | "name": "keyword.operator.coffee" |
| 318 | } |
| 319 | }, |
| 320 | "name": "meta.variable.assignment.destructured.array.coffee", |
| 321 | "patterns": [ |
| 322 | { |
| 323 | "include": "#variable_name" |
| 324 | }, |
| 325 | { |
| 326 | "include": "#instance_variable" |
| 327 | }, |
| 328 | { |
| 329 | "include": "#single_quoted_string" |
| 330 | }, |
| 331 | { |
| 332 | "include": "#double_quoted_string" |
| 333 | }, |
| 334 | { |
| 335 | "include": "#numeric" |
| 336 | } |
| 337 | ] |
| 338 | }, |
| 339 | { |
| 340 | "captures": { |
| 341 | "1": { |
| 342 | "name": "entity.name.function.coffee" |
| 343 | }, |
| 344 | "4": { |
| 345 | "name": "punctuation.definition.parameters.begin.coffee" |
| 346 | }, |
| 347 | "5": { |
| 348 | "patterns": [ |
| 349 | { |
| 350 | "captures": { |
| 351 | "1": { |
| 352 | "name": "variable.parameter.function.coffee" |
| 353 | }, |
| 354 | "2": { |
| 355 | "name": "punctuation.separator.key-value.coffee" |
| 356 | }, |
| 357 | "3": { |
| 358 | "name": "string.quoted.double.coffee" |
| 359 | }, |
| 360 | "4": { |
| 361 | "name": "punctuation.definition.string.begin.coffee" |
| 362 | }, |
| 363 | "5": { |
| 364 | "name": "punctuation.definition.string.end.coffee" |
| 365 | }, |
| 366 | "6": { |
| 367 | "name": "string.quoted.single.coffee" |
| 368 | }, |
| 369 | "7": { |
| 370 | "name": "punctuation.definition.string.begin.coffee" |
| 371 | }, |
| 372 | "8": { |
| 373 | "name": "punctuation.definition.string.end.coffee" |
| 374 | } |
| 375 | }, |
| 376 | "match": "(?x)\n\t\t\t\t\t\t\t\t([^()\\s,]+)\n\t\t\t\t\t\t\t\t\\s+(=)\\s+\n\t\t\t\t\t\t\t\t(?:\n\t\t\t\t\t\t\t\t\t((\")[^\"]*(\"))\n\t\t\t\t\t\t\t\t | ((')[^']*('))\n\t\t\t\t\t\t\t\t)" |
| 377 | }, |
| 378 | { |
| 379 | "match": "[^()\\s,]+", |
| 380 | "name": "variable.parameter.function.coffee" |
| 381 | }, |
| 382 | { |
| 383 | "match": ",", |
| 384 | "name": "punctuation.separator.arguments.coffee" |
| 385 | } |
| 386 | ] |
| 387 | }, |
| 388 | "6": { |
| 389 | "name": "punctuation.definition.parameters.begin.coffee" |
| 390 | }, |
| 391 | "7": { |
| 392 | "name": "storage.type.function.coffee" |
| 393 | } |
| 394 | }, |
| 395 | "match": "(?x)\n\t\t\t\t(?<=^|\\s)\n\t\t\t\t(?=@?[a-zA-Z\\$_])\n\t\t\t\t(\n\t\t\t\t\t@?[a-zA-Z\\$_](\\w|\\$|:|\\.)*\n\t\t\t\t\t\\s*\n\t\t\t\t\t(?=\n\t\t\t\t\t\t[:=]\n\t\t\t\t\t\t(\\s*(\\()(.*)(\\)))?\n\t\t\t\t\t\t\\s*\n\t\t\t\t\t\t([=-]>)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t", |
| 396 | "name": "meta.function.coffee" |
| 397 | }, |
| 398 | { |
| 399 | "match": "(?x)\n\t\t\t\t\\b\n\t\t\t\t(?<!\\.|::)\n\t\t\t\t(true|on|yes)\n\t\t\t\t(?!\\s*[:=][^=])\n\t\t\t\t\\b", |
| 400 | "name": "constant.language.boolean.true.coffee" |
| 401 | }, |
| 402 | { |
| 403 | "match": "(?x)\n\t\t\t\t\\b\n\t\t\t\t(?<!\\.|::)\n\t\t\t\t(false|off|no)\n\t\t\t\t(?!\\s*[:=][^=])\n\t\t\t\t\\b", |
| 404 | "name": "constant.language.boolean.false.coffee" |
| 405 | }, |
| 406 | { |
| 407 | "match": "@?\\b(?!class|subclass|extends|decodeURI(Component)?|encodeURI(Component)?|eval|parse(Float|Int)|require)\\w+(?=\\s+(?!(of|in|then|is|isnt|and|or|for|else|when|not|if)\\s)(?=(@?\\w+|\\->|\\-\\d|\\[|\\{|\"|'))|(?=\\())", |
| 408 | "name": "entity.name.function.coffee" |
| 409 | }, |
| 410 | { |
| 411 | "match": "[=-]>", |
| 412 | "name": "storage.type.function.coffee" |
| 413 | }, |
| 414 | { |
| 415 | "match": "(?x)\n\t\t\t\t\\b\n\t\t\t\t(?<!\\.|::)\n\t\t\t\tnull\n\t\t\t\t(?!\\s*[:=][^=])\n\t\t\t\t\\b", |
| 416 | "name": "constant.language.null.coffee" |
| 417 | }, |
| 418 | { |
| 419 | "match": "(?x)\n\t\t\t\t\\b\n\t\t\t\t(?<!\\.|::)\n\t\t\t\t(extends)\n\t\t\t\t(?!\\s*[:=][^=])\n\t\t\t\t\\b", |
| 420 | "name": "variable.language.coffee" |
| 421 | }, |
| 422 | { |
| 423 | "match": "\\b(?<!\\.)this(?!\\s*[:=])\\b", |
| 424 | "name": "variable.language.this.coffee" |
| 425 | }, |
| 426 | { |
| 427 | "captures": { |
| 428 | "1": { |
| 429 | "name": "storage.type.class.coffee" |
| 430 | }, |
| 431 | "2": { |
| 432 | "name": "keyword.control.inheritance.coffee" |
| 433 | }, |
| 434 | "3": { |
| 435 | "name": "entity.other.inherited-class.coffee" |
| 436 | } |
| 437 | }, |
| 438 | "match": "(?x)\n\t\t\t\t\t(?<=\\s|^|\\[|\\()\n (class\\b)\n\t\t\t\t\t(?:\n\t\t\t\t\t\t\\s+(extends)\\s+\n\t\t\t\t\t\t(@?[a-zA-Z\\$\\._][\\w\\.]*)\n\t\t\t\t\t)", |
| 439 | "name": "meta.class.coffee" |
| 440 | }, |
| 441 | { |
| 442 | "captures": { |
| 443 | "1": { |
| 444 | "name": "storage.type.class.coffee" |
| 445 | }, |
| 446 | "2": { |
| 447 | "name": "entity.name.type.class.coffee" |
| 448 | }, |
| 449 | "3": { |
| 450 | "name": "keyword.control.inheritance.coffee" |
| 451 | }, |
| 452 | "4": { |
| 453 | "name": "entity.other.inherited-class.coffee" |
| 454 | } |
| 455 | }, |
| 456 | "match": "(?x)\n\t\t\t (?<=\\s|^|\\[|\\()\n\t\t\t\t\t(class\\b)\n\t\t\t\t\t\\s+\n\t\t\t\t\t(@?[a-zA-Z\\$_][\\w\\.]*)?\n\t\t\t\t\t(?:\n\t\t\t\t\t\t\\s+(extends)\\s+\n\t\t\t\t\t\t(@?[a-zA-Z\\$\\._][\\w\\.]*)\n\t\t\t\t\t)?", |
| 457 | "name": "meta.class.coffee" |
| 458 | }, |
| 459 | { |
| 460 | "match": "\\b(debugger|\\\\)\\b", |
| 461 | "name": "keyword.other.coffee" |
| 462 | }, |
| 463 | { |
| 464 | "match": "(?x)\n\t\t\t\t\\b(\n\t\t\t\t\tArray\n\t\t\t\t | ArrayBuffer\n\t\t\t\t | Blob\n\t\t\t\t | Boolean\n\t\t\t\t | Date\n\t\t\t\t | document\n\t\t\t\t | Function\n\t\t\t\t | Int(8|16|32|64)Array\n\t\t\t\t | Math\n\t\t\t\t | Map\n\t\t\t\t | Number\n\t\t\t\t | Object\n\t\t\t\t | Proxy\n\t\t\t\t | RegExp\n\t\t\t\t | Set\n\t\t\t\t | String\n\t\t\t\t | WeakMap\n\t\t\t\t | window\n\t\t\t\t | Uint(8|16|32|64)Array\n\t\t\t\t | XMLHttpRequest\n\t\t\t\t)\\b", |
| 465 | "name": "support.class.coffee" |
| 466 | }, |
| 467 | { |
| 468 | "match": "\\b(console)\\b", |
| 469 | "name": "entity.name.type.object.coffee" |
| 470 | }, |
| 471 | { |
| 472 | "match": "((?<=console\\.)(debug|warn|info|log|error|time|timeEnd|assert))\\b", |
| 473 | "name": "support.function.console.coffee" |
| 474 | }, |
| 475 | { |
| 476 | "match": "(?x)\n\t\t\t\t\\b(\n\t\t\t\t\tdecodeURI(Component)?\n\t\t\t\t | encodeURI(Component)?\n\t\t\t\t | eval\n\t\t\t\t | parse(Float|Int)\n\t\t\t\t | require\n\t\t\t\t)\\b", |
| 477 | "name": "support.function.coffee" |
| 478 | }, |
| 479 | { |
| 480 | "match": "(?x)\n\t\t\t\t(\n\t\t\t\t\t(?<=\\.)\n\t\t\t\t\t(\n\t\t\t\t\t\tapply\n\t\t\t\t\t | call\n\t\t\t\t\t | concat\n\t\t\t\t\t | every\n\t\t\t\t\t | filter\n\t\t\t\t\t | forEach\n\t\t\t\t\t | from\n\t\t\t\t\t | hasOwnProperty\n\t\t\t\t\t | indexOf\n\t\t\t\t\t | isPrototypeOf\n\t\t\t\t\t | join\n\t\t\t\t\t | lastIndexOf\n\t\t\t\t\t | map\n\t\t\t\t\t | of\n\t\t\t\t\t | pop\n\t\t\t\t\t | propertyIsEnumerable\n\t\t\t\t\t | push\n\t\t\t\t\t | reduce(Right)?\n\t\t\t\t\t | reverse\n\t\t\t\t\t | shift\n\t\t\t\t\t | slice\n\t\t\t\t\t | some\n\t\t\t\t\t | sort\n\t\t\t\t\t | splice\n\t\t\t\t\t | to(Locale)?String\n\t\t\t\t\t | unshift\n\t\t\t\t\t | valueOf\n\t\t\t\t\t)\n\t\t\t\t)\\b", |
| 481 | "name": "support.function.method.array.coffee" |
| 482 | }, |
| 483 | { |
| 484 | "match": "((?<=Array\\.)(isArray))\\b", |
| 485 | "name": "support.function.static.array.coffee" |
| 486 | }, |
| 487 | { |
| 488 | "match": "(?x)\n\t\t\t\t(\n\t\t\t\t\t(?<=Object\\.)\n\t\t\t\t\t(\n\t\t\t\t\t\tcreate\n\t\t\t\t\t | definePropert(ies|y)\n\t\t\t\t\t | freeze\n\t\t\t\t\t | getOwnProperty(Descriptors?|Names)\n\t\t\t\t\t | getProperty(Descriptor|Names)\n\t\t\t\t\t | getPrototypeOf\n\t\t\t\t\t | is(Extensible|Frozen|Sealed)?\n\t\t\t\t\t | isnt\n\t\t\t\t\t | keys\n\t\t\t\t\t | preventExtensions\n\t\t\t\t\t | seal\n\t\t\t\t\t)\n\t\t\t\t)\\b", |
| 489 | "name": "support.function.static.object.coffee" |
| 490 | }, |
| 491 | { |
| 492 | "match": "(?x)\n\t\t\t\t(\n\t\t\t\t\t(?<=Math\\.)\n\t\t\t\t\t(\n\t\t\t\t\t\tabs\n\t\t\t\t\t | acos\n\t\t\t\t\t | acosh\n\t\t\t\t\t | asin\n\t\t\t\t\t | asinh\n\t\t\t\t\t | atan\n\t\t\t\t\t | atan2\n\t\t\t\t\t | atanh\n\t\t\t\t\t | ceil\n\t\t\t\t\t | cos\n\t\t\t\t\t | cosh\n\t\t\t\t\t | exp\n\t\t\t\t\t | expm1\n\t\t\t\t\t | floor\n\t\t\t\t\t | hypot\n\t\t\t\t\t | log\n\t\t\t\t\t | log10\n\t\t\t\t\t | log1p\n\t\t\t\t\t | log2\n\t\t\t\t\t | max\n\t\t\t\t\t | min\n\t\t\t\t\t | pow\n\t\t\t\t\t | random\n\t\t\t\t\t | round\n\t\t\t\t\t | sign\n\t\t\t\t\t | sin\n\t\t\t\t\t | sinh\n\t\t\t\t\t | sqrt\n\t\t\t\t\t | tan\n\t\t\t\t\t | tanh\n\t\t\t\t\t | trunc\n\t\t\t\t\t)\n\t\t\t\t)\\b", |
| 493 | "name": "support.function.static.math.coffee" |
| 494 | }, |
| 495 | { |
| 496 | "match": "(?x)\n\t\t\t\t(\n\t\t\t\t\t(?<=Number\\.)\n\t\t\t\t\t(\n\t\t\t\t\t\tis(Finite|Integer|NaN)\n\t\t\t\t\t | toInteger\n\t\t\t\t\t)\n\t\t\t\t)\\b", |
| 497 | "name": "support.function.static.number.coffee" |
| 498 | }, |
| 499 | { |
| 500 | "match": "\\b(Infinity|NaN|undefined)\\b", |
| 501 | "name": "constant.language.coffee" |
| 502 | }, |
| 503 | { |
| 504 | "match": "\\;", |
| 505 | "name": "punctuation.terminator.statement.coffee" |
| 506 | }, |
| 507 | { |
| 508 | "match": ",", |
| 509 | "name": "meta.delimiter.object.comma.coffee" |
| 510 | }, |
| 511 | { |
| 512 | "match": "\\.", |
| 513 | "name": "meta.delimiter.method.period.coffee" |
| 514 | }, |
| 515 | { |
| 516 | "match": "\\{|\\}", |
| 517 | "name": "meta.brace.curly.coffee" |
| 518 | }, |
| 519 | { |
| 520 | "match": "\\(|\\)", |
| 521 | "name": "meta.brace.round.coffee" |
| 522 | }, |
| 523 | { |
| 524 | "match": "\\[|\\]\\s*", |
| 525 | "name": "meta.brace.square.coffee" |
| 526 | }, |
| 527 | { |
| 528 | "include": "#instance_variable" |
| 529 | }, |
| 530 | { |
| 531 | "include": "#single_quoted_string" |
| 532 | }, |
| 533 | { |
| 534 | "include": "#double_quoted_string" |
| 535 | }, |
| 536 | { |
| 537 | "include": "#numeric" |
| 538 | } |
| 539 | ], |
| 540 | "repository": { |
| 541 | "double_quoted_string": { |
| 542 | "patterns": [ |
| 543 | { |
| 544 | "begin": "\"", |
| 545 | "beginCaptures": { |
| 546 | "0": { |
| 547 | "name": "punctuation.definition.string.begin.coffee" |
| 548 | } |
| 549 | }, |
| 550 | "end": "\"", |
| 551 | "endCaptures": { |
| 552 | "0": { |
| 553 | "name": "punctuation.definition.string.end.coffee" |
| 554 | } |
| 555 | }, |
| 556 | "name": "string.quoted.double.coffee", |
| 557 | "patterns": [ |
| 558 | { |
| 559 | "match": "(?x)\n\t\t\t\t\t\t\t\t\\\\(\n\t\t\t\t\t\t\t\t\tx\\h{2}\n\t\t\t\t\t\t\t\t | [0-2][0-7]{0,2}\n\t\t\t\t\t\t\t\t | 3[0-6][0-7]\n\t\t\t\t\t\t\t\t | 37[0-7]?\n\t\t\t\t\t\t\t\t | [4-7][0-7]?\n\t\t\t\t\t\t\t\t | .\n\t\t\t\t\t\t\t\t)", |
| 560 | "name": "constant.character.escape.coffee" |
| 561 | }, |
| 562 | { |
| 563 | "include": "#interpolated_coffee" |
| 564 | } |
| 565 | ] |
| 566 | } |
| 567 | ] |
| 568 | }, |
| 569 | "embedded_comment": { |
| 570 | "patterns": [ |
| 571 | { |
| 572 | "captures": { |
| 573 | "1": { |
| 574 | "name": "punctuation.definition.comment.coffee" |
| 575 | } |
| 576 | }, |
| 577 | "match": "(?<!\\\\)(#).*$\\n?", |
| 578 | "name": "comment.line.number-sign.coffee" |
| 579 | } |
| 580 | ] |
| 581 | }, |
| 582 | "instance_variable": { |
| 583 | "patterns": [ |
| 584 | { |
| 585 | "captures": { |
| 586 | "1": { |
| 587 | "name": "punctuation.definition.variable.coffee" |
| 588 | } |
| 589 | }, |
| 590 | "match": "(@)([a-zA-Z_\\$]\\w*)?", |
| 591 | "name": "variable.other.readwrite.instance.coffee" |
| 592 | } |
| 593 | ] |
| 594 | }, |
| 595 | "interpolated_coffee": { |
| 596 | "patterns": [ |
| 597 | { |
| 598 | "begin": "#\\{", |
| 599 | "beginCaptures": { |
| 600 | "0": { |
| 601 | "name": "punctuation.section.embedded.begin.coffee" |
| 602 | } |
| 603 | }, |
| 604 | "contentName": "source.coffee", |
| 605 | "end": "(\\})", |
| 606 | "endCaptures": { |
| 607 | "0": { |
| 608 | "name": "punctuation.section.embedded.end.coffee" |
| 609 | }, |
| 610 | "1": { |
| 611 | "name": "source.coffee" |
| 612 | } |
| 613 | }, |
| 614 | "name": "meta.embedded.line.coffee", |
| 615 | "patterns": [ |
| 616 | { |
| 617 | "include": "$self" |
| 618 | } |
| 619 | ] |
| 620 | } |
| 621 | ] |
| 622 | }, |
| 623 | "numeric": { |
| 624 | "patterns": [ |
| 625 | { |
| 626 | "match": "(?x)\n\t\t\t\t\t\t(?<!\\$)\\b\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t(0([box])[0-9a-fA-F]+)\n\t\t\t\t\t\t | ([0-9]+(\\.[0-9]+)?(e[+\\-]?[0-9]+)?)\n\t\t\t\t\t\t)\\b", |
| 627 | "name": "constant.numeric.coffee" |
| 628 | } |
| 629 | ] |
| 630 | }, |
| 631 | "single_quoted_string": { |
| 632 | "patterns": [ |
| 633 | { |
| 634 | "begin": "'", |
| 635 | "beginCaptures": { |
| 636 | "0": { |
| 637 | "name": "punctuation.definition.string.begin.coffee" |
| 638 | } |
| 639 | }, |
| 640 | "end": "'", |
| 641 | "endCaptures": { |
| 642 | "0": { |
| 643 | "name": "punctuation.definition.string.end.coffee" |
| 644 | } |
| 645 | }, |
| 646 | "name": "string.quoted.single.coffee", |
| 647 | "patterns": [ |
| 648 | { |
| 649 | "match": "(?x)\n\t\t\t\t\t\t\t\t\\\\(\n\t\t\t\t\t\t\t\t\tx\\h{2}\n\t\t\t\t\t\t\t\t | [0-2][0-7]{0,2}\n\t\t\t\t\t\t\t\t | 3[0-6][0-7]?\n\t\t\t\t\t\t\t\t | 37[0-7]?\n\t\t\t\t\t\t\t\t | [4-7][0-7]?\n\t\t\t\t\t\t\t\t | .\n\t\t\t\t\t\t\t\t)", |
| 650 | "name": "constant.character.escape.coffee" |
| 651 | } |
| 652 | ] |
| 653 | } |
| 654 | ] |
| 655 | }, |
| 656 | "variable_name": { |
| 657 | "patterns": [ |
| 658 | { |
| 659 | "match": "([a-zA-Z\\$_]\\w*(\\.\\w+)*)", |
| 660 | "name": "variable.other.assignment.coffee" |
| 661 | } |
| 662 | ] |
| 663 | } |
| 664 | }, |
| 665 | "scopeName": "source.coffee", |
| 666 | "uuid": "5B520980-A7D5-4E10-8582-1A4C889A8DE5", |
| 667 | "version": "https://github.com/textmate/coffee-script.tmbundle/commit/da28450cf18a73595e298535c93c8370ae06994c" |
| 668 | } |