| 1 |
filetype: coffeescript |
| 2 |
|
| 3 |
detect: |
| 4 |
filename: "\\.coffee$" |
| 5 |
|
| 6 |
rules: |
| 7 |
- symbol.operator: "([-+/*=<>!~%?:&|]|[.]{3})|\\b(and|or|is|isnt|not)\\b" |
| 8 |
- identifier.class: "([A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\\()|->)" |
| 9 |
- symbol.brackets: "[()]" |
| 10 |
|
| 11 |
- statement: "\\b(await|when|catch|continue|debugger|default|by|until)\\b" |
| 12 |
- statement: "\\b(delete|do|else|export|finally|for|class|extends|while|then)\\b" |
| 13 |
- statement: "\\b(get|if|import|from|in|instanceof|new|reject|resolve|return)\\b" |
| 14 |
- statement: "\\b(set|super|switch|this|throw|try|typeof|with|yield|unless)\\b" |
| 15 |
|
| 16 |
- constant.bool: "\\b(true|false|yes|no|on|off)\\b" |
| 17 |
- constant.bool.false: "\\b(false|no|off)\\b" |
| 18 |
- constant.bool.true: "\\b(true|yes|on)\\b" |
| 19 |
|
| 20 |
- constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b" |
| 21 |
- constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" |
| 22 |
- constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" |
| 23 |
- identifier: "@[A-Za-z0-9_]*" |
| 24 |
|
| 25 |
- error: "\\b(enum|implements|interface|package|private|protected|public)" |
| 26 |
- constant: "\\b(globalThis|Infinity|null|undefined|NaN)\\b" |
| 27 |
- constant: "\\b(null|undefined|NaN)\\b" |
| 28 |
- constant: "\\b(true|false|yes|no|on|off)\\b" |
| 29 |
- type: "\\b(Array|Boolean|Date|Enumerator|Error|Function|Generator|Map|Math)\\b" |
| 30 |
- type: "\\b(Number|Object|Promise|Proxy|Reflect|RegExp|Set|String|Symbol|WeakMap|WeakSet)\\b" |
| 31 |
- type: "\\b(BigInt64Array|BigUint64Array|Float32Array|Float64Array|Int16Array)\\b" |
| 32 |
|
| 33 |
- constant.string: |
| 34 |
start: "\"" |
| 35 |
end: "\"" |
| 36 |
skip: "\\\\." |
| 37 |
rules: |
| 38 |
- constant.specialChar: "\\\\." |
| 39 |
|
| 40 |
- constant.string: |
| 41 |
start: "'" |
| 42 |
end: "'" |
| 43 |
skip: "\\\\." |
| 44 |
rules: |
| 45 |
- constant.specialChar: "\\\\." |
| 46 |
|
| 47 |
- comment: |
| 48 |
start: "###" |
| 49 |
end: "###" |
| 50 |
rules: [] |
| 51 |
|
| 52 |
- comment: |
| 53 |
start: "#" |
| 54 |
end: "$" |
| 55 |
rules: |
| 56 |
- todo: "(TODO|XXX|FIXME):?" |