forked from zyedidia/micro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoffeescript.yaml
29 lines (24 loc) · 897 Bytes
/
coffeescript.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
filetype: coffeescript
detect:
filename: "\\.coffee$"
rules:
- symbol.operator: "[!&|=/*+-<>]|\\b(and|or|is|isnt|not)\\b"
- identifier.class: "([A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\\()|->)"
- symbol.brackets: "[()]"
- statement: "\\b(for|of|continue|break|isnt|null|unless|this|else|if|return)\\b"
- statement: "\\b(try|catch|finally|throw|new|delete|typeof|in|instanceof)\\b"
- statement: "\\b(debugger|switch|while|do|class|extends|super)\\b"
- statement: "\\b(undefined|then|unless|until|loop|of|by|when)\\b"
- constant.bool: "\\b(true|false|yes|no|on|off)\\b"
- identifier: "@[A-Za-z0-9_]*"
- constant.string:
start: "\""
end: "\""
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."
- comment:
start: "#"
end: "$"
rules:
- todo: "(TODO|XXX|FIXME):?"